Explorar el Código

Fix CI to build releases

ghorsington hace 5 años
padre
commit
b8e284dc0a
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      scripts/jenkins_master.groovy

+ 4 - 2
scripts/jenkins_master.groovy

@@ -23,7 +23,6 @@ pipeline {
                     git 'https://github.com/BepInEx/BepInEx.git'
                     
                     script {
-                        echo(env.LAST_BUILD_HASH)
                         shortCommit = sh(returnStdout: true, script: "git log -n 1 --pretty=format:'%h'").trim()
                         longCommit = sh(returnStdout: true, script: "git rev-parse HEAD").trim()
                         branchName = sh(returnStdout: true, script: "git rev-parse --abbrev-ref HEAD").trim()
@@ -162,7 +161,10 @@ Changes since ${latestTag}:
     }
     post {
         cleanup {
-            writeFile file: 'last_build_commit', text: lastBuildCommit
+            script {
+                if(params.IS_BE)
+                    writeFile file: 'last_build_commit', text: lastBuildCommit
+            }
         }
         success {
             script {