Skip to content

Commit

Permalink
Dockerfile on Jenkinsfile final fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-aranda committed Feb 21, 2022
1 parent 5527140 commit 039573a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pipeline {
branch "hotfix/*"
branch "release/*"
branch "tickets/*"
branch "PR-*"
}
}
steps {
Expand Down Expand Up @@ -48,7 +47,6 @@ pipeline {
branch "hotfix/*"
branch "release/*"
branch "tickets/*"
branch "PR-*"
}
}
steps {
Expand All @@ -63,12 +61,18 @@ pipeline {
stage("Run tests") {
when {
anyOf {
branch "main"
branch "develop"
branch "bugfix/*"
branch "hotfix/*"
branch "release/*"
branch "tickets/*"
branch "PR-*"
}
}
steps {
script {
sh "docker image build -f Dockerfile-test -t love-frontend-test ."
sh "docker image build -f docker/Dockerfile-test -t love-frontend-test ."
sh "docker run love-frontend-test"
}
}
Expand Down

0 comments on commit 039573a

Please sign in to comment.