Browse Source

add revision number to build process

Vadim Surkov 5 years ago
parent
commit
198a386668
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Jenkinsfile

+ 6 - 1
Jenkinsfile

@@ -16,6 +16,11 @@ pipeline {
     REV_NUMBER=''
   }
   parameters {
+    string(
+      name: "REVNUM",
+      defaultValue: "HEAD",
+      description: "Revision number"
+    )
     string(
       name: "mailto",
       defaultValue: "admin@sdsys.ru",
@@ -26,7 +31,7 @@ pipeline {
     stage("SVN Checkout") {
       steps {
         sh """[ -d analis/.svn ] && svn cleanup analis
-              svn co --force --no-auth-cache svn://192.168.21.250/programs/trunk/Services/Analis/Win32 analis --username public --password "sds#7753435"
+              svn co -r ${REVNUM} --force --no-auth-cache svn://192.168.21.250/programs/trunk/Services/Analis/Win32 analis --username public --password "sds#7753435"
            """
       }
     }