Skip to content

Commit

Permalink
ci: migrate to docker compose v2 CLI in stable and dev pipelines [ski…
Browse files Browse the repository at this point in the history
…p ci] (#18841)

Signed-off-by: Rado <[email protected]>
  • Loading branch information
radnov authored Oct 16, 2024
1 parent 0ae2a2d commit 0999dbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions jenkinsfiles/dev
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pipeline {
script {
dir("dhis-2/dhis-test-e2e") {
sh "docker pull ${DOCKER_IMAGE_NAME_FULL}"
sh "DHIS2_IMAGE=${DOCKER_IMAGE_NAME_FULL} docker-compose --project-name ${DOCKER_IMAGE_TAG_BASE} --file docker-compose.yml --file docker-compose.e2e.yml up --remove-orphans --exit-code-from test"
sh "DHIS2_IMAGE=${DOCKER_IMAGE_NAME_FULL} docker compose --file docker-compose.yml --file docker-compose.e2e.yml up --remove-orphans --exit-code-from test"
}
}
}
Expand All @@ -107,8 +107,8 @@ pipeline {
failure {
script {
dir("dhis-2/dhis-test-e2e") {
sh "docker-compose --project-name ${DOCKER_IMAGE_TAG_BASE} logs web > ${DOCKER_IMAGE_TAG_BASE}_logs.txt"
archiveArtifacts artifacts: "${DOCKER_IMAGE_TAG_BASE}_logs.txt"
sh "docker compose logs web > web-logs.txt"
archiveArtifacts artifacts: "web-logs.txt"
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions jenkinsfiles/stable
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pipeline {
script {
dir("dhis-2/dhis-test-e2e") {
sh "docker pull ${DOCKER_IMAGE_NAME_FULL}"
sh "DHIS2_IMAGE=${DOCKER_IMAGE_NAME_FULL} docker-compose --project-name ${DOCKER_IMAGE_TAG_BASE} --file docker-compose.yml --file docker-compose.e2e.yml up --remove-orphans --exit-code-from test"
sh "DHIS2_IMAGE=${DOCKER_IMAGE_NAME_FULL} docker compose --file docker-compose.yml --file docker-compose.e2e.yml up --remove-orphans --exit-code-from test"
}
}
}
Expand All @@ -98,8 +98,8 @@ pipeline {
failure {
script {
dir("dhis-2/dhis-test-e2e") {
sh "docker-compose --project-name ${DOCKER_IMAGE_TAG_BASE} logs web > ${DOCKER_IMAGE_TAG_BASE}_logs.txt"
archiveArtifacts artifacts: "${DOCKER_IMAGE_TAG_BASE}_logs.txt"
sh "docker compose logs web > web-logs.txt"
archiveArtifacts artifacts: "web-logs.txt"
}
}
}
Expand Down

0 comments on commit 0999dbd

Please sign in to comment.