Skip to content

Commit

Permalink
ci: strip dash if master
Browse files Browse the repository at this point in the history
Signed-off-by: TonsV2 <[email protected]>
  • Loading branch information
tonsV2 committed Oct 26, 2023
1 parent 220774a commit 4af878e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jenkinsfiles/dev
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ pipeline {
env.DATABASE_ID = "test-dbs-sierra-leone-dev-sql-gz"
} else {
env.IMAGE_TAG = env.GIT_BRANCH
branch = env.GIT_BRANCH.replaceAll(".", "-")
branch = "-${env.GIT_BRANCH.replaceAll(".", "-")}"

dir('scripts/databases') {
env.DATABASE_ID = sh(
Expand All @@ -231,7 +231,7 @@ pipeline {
echo "Database: ${env.DATABASE_ID}"

dir('scripts/instances') {
sh "(./findByName.sh play dev-${branch} && ./restart.sh play dev-${branch}) || ./deploy-dhis2.sh play dev-${branch}"
sh "(./findByName.sh play dev${branch} && ./restart.sh play dev${branch}) || ./deploy-dhis2.sh play dev${branch}"
timeout(5) {
waitFor.statusOk("${env.INSTANCE_URL}")
}
Expand Down

0 comments on commit 4af878e

Please sign in to comment.