Last active
October 17, 2018 13:35
-
-
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
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
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