Skip to content

Commit

Permalink
don't run build images from branch
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrylyuk-andriy committed Aug 5, 2024
1 parent 7b53c15 commit 8bf0346
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pipeline {
stage("Build, deploy, SBT test") {
stages {
stage('Build dependency-api and depencdency-www services') {
// when { branch 'main'}
when { branch 'main'}
stages {
stage('Build and push docker images') {
stages {
Expand Down Expand Up @@ -185,29 +185,6 @@ pipeline {
}
}

stage('SBT Test') {
steps {
container('play') {
script {
try {
sh '''
echo "$(date) - waiting for database to start"
until pg_isready -h localhost
do
sleep 10
done
'''
sh 'sbt clean flowLint coverage test scalafmtSbtCheck scalafmtCheck doc'
sh 'sbt coverageAggregate'
}
finally {
postSbtReport()
}
}
}
}
}

stage('Deploy dependency servcies') {
when { branch 'main' }
stages {
Expand Down Expand Up @@ -235,6 +212,29 @@ pipeline {
}
}
}

stage('SBT Test') {
steps {
container('play') {
script {
try {
sh '''
echo "$(date) - waiting for database to start"
until pg_isready -h localhost
do
sleep 10
done
'''
sh 'sbt clean flowLint coverage test scalafmtSbtCheck scalafmtCheck doc'
sh 'sbt coverageAggregate'
}
finally {
postSbtReport()
}
}
}
}
}
}
}
}
Expand Down

0 comments on commit 8bf0346

Please sign in to comment.