Skip to content

Instantly share code, notes, and snippets.

@slide
Created December 5, 2018 16:01
Show Gist options
  • Save slide/d11a3de7f893cd394760b8e8eb7c5953 to your computer and use it in GitHub Desktop.
Save slide/d11a3de7f893cd394760b8e8eb7c5953 to your computer and use it in GitHub Desktop.
stage('TEST STATE') {
steps {
script {
withJenkinsCreds {
sh "python3.7 ./var/testStuff.py"
}
}
}
}
def call(c) {
withCredentials ([string(credentialsId: 'jenkins-test-cred-1', variable: 'TEST_CRED_1'),
string(credentialsId: 'jenkins-test-cred-2', variable: 'TEST_CRED_2'),
string(credentialsId: 'jenkins-test-cred-3, variable: 'TEST_CRED_3')]){
c()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment