Created
February 1, 2019 16:28
-
-
Save timja/0838563e8260bea5dcfddc2f687cc3a3 to your computer and use it in GitHub Desktop.
Reload JCASC
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
stage("Reload") { | |
sh "curl -fsSLO ${JENKINS_URL}jnlpJars/jenkins-cli.jar" | |
withCredentials([usernamePassword(credentialsId: 'jenkins-remoting', passwordVariable: 'JENKINS_API_TOKEN', usernameVariable: 'JENKINS_USER_ID')]) { | |
sh "java -jar jenkins-cli.jar -s ${JENKINS_URL} reload-jcasc-configuration" | |
} | |
archiveArtifacts artifacts: 'dist/**', fingerprint: true, onlyIfSuccessful: true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment