Some more Jenkins troubleshooting in production...

This commit is contained in:
RichardG867
2021-11-13 14:00:41 -03:00
parent 630ea25922
commit 185c34e885

7
.ci/Jenkinsfile vendored
View File

@@ -17,11 +17,12 @@
def gitClone() { def gitClone() {
cleanWs() cleanWs()
println env.GIT_COMMIT
if (env.GIT_COMMIT == null) if (env.GIT_COMMIT == null)
env.GIT_COMMIT = BRANCH env.GIT_COMMIT = BRANCH
def scmVars = git url: 'https://github.com/richardg867/86Box.git', println "[-] Building git tag [${env.GIT_COMMIT}]"
branch: env.GIT_COMMIT def scmVars = checkout scm: [$class: 'GitSCM',
branches: [[name: env.GIT_COMMIT]],
userRemoteConfigs: [[url: 'http://git-server/user/repository.git']]]
env.GIT_COMMIT = scmVars.GIT_COMMIT env.GIT_COMMIT = scmVars.GIT_COMMIT
} }