Skip to content

Commit

Permalink
switch to compose v2 (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
karun-singh authored Apr 21, 2023
1 parent d7b22ee commit 8eca65a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pipeline {
stage('Unit Tests and CodeCoverage Test'){
steps{
script{
sh 'docker-compose -f docker-compose.test.yml up test'
sh 'docker compose -f docker-compose.test.yml up test'
}
xunit (
thresholds: [ skipped(failureThreshold: '0'), failed(failureThreshold: '0') ],
Expand All @@ -39,7 +39,7 @@ pipeline {
post{
failure{
script{
sh 'docker-compose -f docker-compose.test.yml down --remove-orphans'
sh 'docker compose -f docker-compose.test.yml down --remove-orphans'
}
error "Test failure. Stopping pipeline execution!"
}
Expand All @@ -55,10 +55,17 @@ pipeline {
steps{
script{
sh 'scp src/test/resources/IUDX_GIS_Server_APIs_V4.5.0.postman_collection.json jenkins@jenkins-master:/var/lib/jenkins/iudx/gis/Newman/'
sh 'docker-compose -f docker-compose.test.yml up -d integTest'
sh 'docker compose -f docker-compose.test.yml up -d integTest'
sh 'sleep 45'
}
}
post{
failure{
script{
sh 'docker compose -f docker-compose.test.yml down --remove-orphans'
}
}
}
}

stage('Integration Tests & ZAP pen test'){
Expand All @@ -81,7 +88,7 @@ pipeline {
}
}
script{
sh 'docker-compose -f docker-compose.test.yml down --remove-orphans'
sh 'docker compose -f docker-compose.test.yml down --remove-orphans'
}
}
}
Expand Down

0 comments on commit 8eca65a

Please sign in to comment.