Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
update ci (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackjii79 authored Feb 22, 2024
1 parent 82310d4 commit 58c5a16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pipeline {
agent { label NODE_LABEL }
when {
expression {
return isReleaseBranch() || isMasterBranch() || params.PUSH_DISTRIBUTION_ZIP
return (isReleaseBranch() || isMasterBranch()) && params.PUSH_DISTRIBUTION_ZIP
}
}
steps {
Expand Down Expand Up @@ -151,7 +151,7 @@ pipeline {
stage('5. Push Docker Images To Harbor') {
when {
expression {
return isReleaseBranch() || isMasterBranch() || params.PUSH_TO_HARBOR
return (isReleaseBranch() || isMasterBranch()) && params.PUSH_TO_HARBOR
}
}
agent {
Expand Down Expand Up @@ -187,7 +187,7 @@ pipeline {
stage('6. Push Docker Images To DockerHub') {
when {
expression {
return isReleaseBranch() || params.PUSH_TO_DOCKERHUB
return (isReleaseBranch() || isMasterBranch()) && params.PUSH_TO_DOCKERHUB
}
}
agent {
Expand Down Expand Up @@ -222,7 +222,7 @@ pipeline {
stage('7. Push Docker Images To GoogleCloud') {
when {
expression {
return isReleaseBranch() || params.PUSH_TO_VORVAN
return (isReleaseBranch() || isMasterBranch()) && params.PUSH_TO_VORVAN
}
}
agent {
Expand Down

0 comments on commit 58c5a16

Please sign in to comment.