Skip to content

Commit

Permalink
Merge pull request #288 from etendosoftware/hotfix/ETO-277
Browse files Browse the repository at this point in the history
Hotfix ETO-277: add main branch condition to stages
  • Loading branch information
facumoyanosmf authored Jan 18, 2024
2 parents 7f2a251 + 24362ca commit 847e7e6
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions pipelines/unittests/JenkinsfileOracle
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ spec:
stages {
stage('Build Environment') {
when {
branch 'develop'
expression {
env.BRANCH_NAME == 'develop' || env.BRANCH_NAME == 'main'
}
}
steps {
container('compiler') {
Expand Down Expand Up @@ -191,7 +193,9 @@ spec:
stage ('Web Service Test Suite'){
when {
allOf {
branch 'develop'
expression {
env.BRANCH_NAME == 'develop' || env.BRANCH_NAME == 'main'
}
expression {
env.STATUSBUILD == "1"
}
Expand Down Expand Up @@ -240,7 +244,9 @@ spec:
stage('Clean Database') {
when {
allOf {
branch 'develop'
expression {
env.BRANCH_NAME == 'develop' || env.BRANCH_NAME == 'main'
}
expression {
env.STATUSBUILD == "1"
}
Expand Down Expand Up @@ -275,7 +281,9 @@ spec:
stage ('Standalone Test Suite'){
when {
allOf {
branch 'develop'
expression {
env.BRANCH_NAME == 'develop' || env.BRANCH_NAME == 'main'
}
expression {
env.STATUSBUILD == "1"
}
Expand Down Expand Up @@ -322,7 +330,9 @@ spec:
stage ('Spock Test') {
when {
allOf {
branch 'develop'
expression {
env.BRANCH_NAME == 'develop' || env.BRANCH_NAME == 'main'
}
expression {
env.STATUSBUILD == "1"
}
Expand Down Expand Up @@ -369,7 +379,7 @@ spec:
always {
container('compiler') {
script {
if (env.BRANCH_NAME == 'develop') {
if (env.BRANCH_NAME == 'develop' || env.BRANCH_NAME == 'main') {
dir('etendo_core') {
sh "./gradlew --stop"
}
Expand Down

0 comments on commit 847e7e6

Please sign in to comment.