Browse Source

See Redmine 117384

Владимир Томишинец 5 years ago
parent
commit
87ea76b83f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Jenkinsfile_keygen

+ 3 - 1
Jenkinsfile_keygen

@@ -213,7 +213,9 @@ pipeline {
            body: "<b>ATTENTION!!!</b> <b><br> Jenkins job aborted.\n\n <b><br> The CNAME ${key_name} is already exists!\n\n <b><br>Project Name:</b> ${env.JOB_NAME} <b><br>\nBuild Number:</b> ${env.BUILD_NUMBER} <b><br>\nURL Build:</b> ${RUN_DISPLAY_URL}"
     }
     success{
-      sh "wget http://dev-jenkins.sdsys.ru:8080/job/iru-bind/build?token=iru-bind -O -"
+      withCredentials([usernamePassword(credentialsId: 'admin', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
+        sh "wget http://${USERNAME}:${PASSWORD}@dev-jenkins.sdsys.ru:8080/job/iru-bind/build?token=iru-bind -O -"
+      }
     }
   }
 }