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.
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.
| 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); |
Random query recipes of JMESPath for the AWS CLI tools that I might have written or stumbled upon.