Last active
June 15, 2017 16:13
-
-
Save v0rts/1bbcf87cb63834a45eabba28de3a220a to your computer and use it in GitHub Desktop.
Jenkins Tips
This file contains 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
# Jenkins delete all projects for a job | |
java -jar jenkins-cli.jar -s http://my.jenkins.host delete-builds myproject '1-7499' --username $user --password $password | |
# Retrieve slave secret key via cli or console | |
# ------------------------------------------- | |
for (aSlave in hudson.model.Hudson.instance.slaves) | |
{ println aSlave.name + "," + aSlave.getComputer().getJnlpMac() } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment