Advertisement
Guest User

Untitled

a guest
Mar 7th, 2017
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. def git_creds = 'fb85701a-9f10-4056-9ae7-420e3XXXX9ef'
  2. node {
  3. withCredentials([
  4. [$class: 'UsernamePasswordMultiBinding', credentialsId: git_creds, usernameVariable: 'GIT_USER', passwordVariable: 'GIT_PASS'],
  5. ]){
  6. stage ('echo variables') {
  7. sh """(
  8. echo "User: ${GIT_USER}"
  9. echo "Pass: ${GIT_PASS}"
  10. )"""
  11. }
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement