Skip to content

Commit 40e344f

Browse files
Merge pull request #28 from memphisdev/valeraBr-patch-3
Update Jenkinsfile
2 parents 89b0db7 + 3c27cf6 commit 40e344f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Jenkinsfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ node {
2020
sh "docker buildx use builder"
2121
sh "docker buildx build --push --tag ${repoUrlPrefix}/${imageName}:${gitBranch} --platform linux/amd64,linux/arm64 ."
2222
}
23-
/*
23+
24+
if (env.BRANCH_NAME ==~ /(latest)/) {
2425
stage('checkout to version branch'){
2526
withCredentials([sshUserPrivateKey(keyFileVariable:'check',credentialsId: 'main-github')]) {
2627
sh "git reset --hard origin/latest"
@@ -35,7 +36,8 @@ node {
3536
withCredentials([string(credentialsId: 'gh_token', variable: 'GH_TOKEN')]) {
3637
sh "gh release create ${versionTag} --generate-notes"
3738
}
38-
}*/
39+
}
40+
}
3941

4042
notifySuccessful()
4143

0 commit comments

Comments
 (0)