Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigodiaspilotogalvao authored Oct 10, 2023
1 parent 55e0333 commit 7f1ef5c
Showing 1 changed file with 31 additions and 6 deletions.
37 changes: 31 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ pipeline {
}

stage('Tag Github Dev') {
agent { label 'master' }
agent { kubernetes {
label 'builder'
defaultContainer 'builder'
}
}
when { anyOf { branch 'develop'; }}
steps{
script{
Expand All @@ -150,7 +154,11 @@ pipeline {
}

stage('Tag Github Hom') {
agent { label 'master' }
agent { kubernetes {
label 'builder'
defaultContainer 'builder'
}
}
when { anyOf { branch 'release'; }}
steps{
script{
Expand All @@ -167,7 +175,11 @@ pipeline {
}

stage('Tag Github Prod') {
agent { label 'master' }
agent { kubernetes {
label 'builder'
defaultContainer 'builder'
}
}
when { anyOf { branch 'master'; }}
steps{
script{
Expand All @@ -184,7 +196,11 @@ pipeline {
}

stage('Release Github Dev') {
agent { label 'master' }
agent { kubernetes {
label 'builder'
defaultContainer 'builder'
}
}
when { anyOf { branch 'develop'; }}
steps{
script{
Expand All @@ -205,7 +221,11 @@ pipeline {
}

stage('Release Github Hom') {
agent { label 'master' }
agent { kubernetes {
label 'builder'
defaultContainer 'builder'
}
}
when { anyOf { branch 'release'; }}
steps{
script{
Expand All @@ -227,7 +247,11 @@ pipeline {
}

stage('Release Github Prod') {
agent { label 'master' }
agent { kubernetes {
label 'builder'
defaultContainer 'builder'
}
}
when { anyOf { branch 'master'; }}
steps{
script{
Expand Down Expand Up @@ -282,3 +306,4 @@ pipeline {
}
}
}

0 comments on commit 7f1ef5c

Please sign in to comment.