Skip to content

Instantly share code, notes, and snippets.

@lavk7
Created August 20, 2020 02:24
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 lavk7/2a3d1a9cca03632942d4973b20da0220 to your computer and use it in GitHub Desktop.
Save lavk7/2a3d1a9cca03632942d4973b20da0220 to your computer and use it in GitHub Desktop.
Jenkins Snippet With Credentials
withCredentials([
usernamePassword(credentialsId: argoConfig['credentialsId'], usernameVariable: "ARGO_USR", passwordVariable: "ARGO_PW"),
usernamePassword(credentialsId: gitConfig['credentialsId'], usernameVariable: "GIT_USR", passwordVariable: "GIT_PW")
]){
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment