Browse Source

Обновить 'Jenkinsfile'

Vladimir Tomishinets 6 years ago
parent
commit
6f61cbeccd
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Jenkinsfile

+ 3 - 2
Jenkinsfile

@@ -33,8 +33,9 @@ pipeline {
     stage("Generate zone-files") {
       steps {
         echo "generate ptr-zones"
-        sh '''${WORKSPACE}/generate_ptr.sh 201
-              ${WORKSPACE}/generate_ptr.sh 204
+        sh '''serial=$(echo ${WORKSPACE}/SWARM_GIT_NAME/tags/bind.version)
+              ${WORKSPACE}/generate_ptr.sh 201 ${serial}
+              ${WORKSPACE}/generate_ptr.sh 204 ${serial}
               cat 201.168.192.in-addr.arpa.zone
               cat 204.168.192.in-addr.arpa.zone
            '''