Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def git_creds = 'fb85701a-9f10-4056-9ae7-420e3XXXX9ef'
- node {
- withCredentials([
- [$class: 'UsernamePasswordMultiBinding', credentialsId: git_creds, usernameVariable: 'GIT_USER', passwordVariable: 'GIT_PASS'],
- ]){
- stage ('echo variables') {
- sh """(
- echo "User: ${GIT_USER}"
- echo "Pass: ${GIT_PASS}"
- )"""
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement