Created
March 18, 2018 16:37
-
-
Save kenych/0d1d7b9757e8e38b610efedeb6972fe1 to your computer and use it in GitHub Desktop.
Jenkins credentials config, next generation
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 { | |
exclude{ | |
tyrion-jenkins | |
} | |
data{ | |
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' | |
] | |
} | |
} | |
custom_credentials { | |
include{ | |
john-snow-jenkins | |
arya-jenkins | |
sansa-jenkins | |
} | |
data{ | |
artifactory = [ | |
username: 'arti', | |
password: '{{with $secret := secret "secret/jenkins/artifactory" }}{{ $secret.Data.artifactory_password }}{{end}}', | |
description: 'Artifactory credentials' | |
] | |
} | |
} | |
tyrion-jenkins_credentials { | |
data{ | |
nexus=[ | |
'username':'deployment', | |
'password':'{{with $secret := secret "secret/jenkins/nexus" }}{{ $secret.Data.nexus_password }}{{end}}', | |
'description':'Nexus credentials' | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment