Skip to content

Instantly share code, notes, and snippets.

@infamousjoeg
Last active October 17, 2018 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infamousjoeg/d8033e9d1e19b531f533e5d9a714d4e0 to your computer and use it in GitHub Desktop.
Save infamousjoeg/d8033e9d1e19b531f533e5d9a714d4e0 to your computer and use it in GitHub Desktop.
Jenkinsfile example of how to use CyberArk Conjur's Credential Plugin for Jenkins OSS
pipeline {
agent any
triggers {
pollSCM('H * * * *')
}
stages {
stage('Work') {
steps {
withCredentials([conjurSecretCredential(credentialsId: 'conjur-artifactory-password',
variable: 'SECRET_ARTIFACTORY')]) {
echo "Artifactory Secret: $SECRET_ARTIFACTORY"
}
}
}
stage('Results') {
steps {
echo "Finished!"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment