소스 검색

Make lastBuildCommit global in CI script

ghorsington 4 년 전
부모
커밋
bb10041a9b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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()