Browse Source

Обновить 'Jenkinsfile'

Vladimir Tomishinets 6 năm trước cách đây
mục cha
commit
6f61cbeccd
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  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
            '''