Setup Jenkins Credentials
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
|domain = Domain.global()|
|store = Jenkins.instance.getExtensionList('com.cloudbees.plugins.credentials.SystemCredentialsProvider').getStore()|
|priveteKey = new BasicSSHUserPrivateKey(|
|usernameAndPassword = new UsernamePasswordCredentialsImpl(|
|"jenkins-slave-password", "Jenkis Slave with Password Configuration",|
Nov 10, 2015
I found a solution to secret file and secret text. I have forked the gist and updated my fork.
Nov 24, 2015
I had to update my fork to correctly deal with DiskFileItem
Jul 11, 2017
I am able to run this script when invoked using "Execute System Groovy Script" but not with "Process Job DSL" in one machine, while it runs with both in some machines. Can somebody help with the problem ?
Apr 19, 2018
Can you help to add AWS and Secret credentials?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Do you know how to do "secret file" or "secret text"? These are additional kinds of credentials that can be stored in Jenkins.