Random query recipes of JMESPath for the AWS CLI tools that I might have written or stumbled upon.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var currentOps = db.currentOp(); | |
print("Index Status:"); | |
if(!currentOps.inprog || currentOps.inprog.length < 1) { | |
print("No operations in progress"); | |
} else { | |
for(o in currentOps.inprog) { | |
var op = currentOps.inprog[o]; | |
if(op.msg && op.msg.match(/Index Build/)) { | |
print(op.opid+' - '+op.msg); |
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Please comment & let me know if you have a fork / fixes you'd like to include.