Created
March 18, 2018 16:36
-
-
Save kenych/02a5ffbf35a9422293a5ee51c1a92a1a to your computer and use it in GitHub Desktop.
Jenkins credentials config
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
common_credentials { | |
jenkins_service_user = [ | |
username: 'jenkins_service_user', | |
password: '{{with $secret := secret "secret/jenkins/jenkins_service_user" }}{{ $secret.Data.value }}{{end}}', | |
description :'for automated jenkins jobs' | |
] | |
slack = [ | |
username: '{{with $secret := secret "secret/slack/user" }}{{ $secret.Data.value }}{{end}}', | |
password: '{{with $secret := secret "secret/slack/pass" }}{{ $secret.Data.value }}{{end}}', | |
description: 'slack credentials' | |
] | |
} | |
kayan_jenkins_credentials { | |
artifactory = [ | |
username: 'arti', | |
password: '{{with $secret := secret "secret/jenkins/artifactory" }}{{ $secret.Data.artifactory_password }}{{end}}', | |
description: 'Artifactory credentials' | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment