Browse Source

Make lastBuildCommit global in CI script

ghorsington 4 years ago
parent
commit
bb10041a9b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/jenkins_master.groovy

+ 2 - 2
scripts/jenkins_master.groovy

@@ -1,6 +1,8 @@
 /*
 *  BepInEx Bleeding Edge build CI jenkinsfile
 */
+lastBuildCommit = ""
+
 pipeline {
     agent any
     parameters {
@@ -13,8 +15,6 @@ pipeline {
                 script {
                     if(fileExists('last_build_commit'))
                         lastBuildCommit = readFile 'last_build_commit'
-                    else 
-                        lastBuildCommit = ""
                 }
                 // Clean up old project before starting
                 cleanWs()