Explorar el Código

Make lastBuildCommit global in CI script

ghorsington hace 4 años
padre
commit
bb10041a9b
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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()