Skip to content

Commit

Permalink
switching to main as default branch
Browse files Browse the repository at this point in the history
 if(env.BRANCH_NAME == "main") {
                       tag = "latest"
                    }
  • Loading branch information
chubing authored Jul 7, 2020
1 parent ff1cfff commit e0ed075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pipeline {
script {
maintainer = maintain()
imagename = imagename()
if(env.BRANCH_NAME == "master") {
if(env.BRANCH_NAME == "main") {
tag = "latest"
} else {
tag = env.BRANCH_NAME
Expand Down

0 comments on commit e0ed075

Please sign in to comment.