Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
Run tests directly with the marine-backend image
  • Loading branch information
olimpiurob authored Dec 13, 2023
1 parent f69a1d9 commit 77a8d0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ pipeline {
script {
try {
checkout scm
sh '''sed -i "s|eeacms/marine-backend|${IMAGE_NAME}|g" devel/Dockerfile'''
// sh '''sed -i "s|eeacms/marine-backend|${IMAGE_NAME}|g" devel/Dockerfile'''
sh '''docker build -t ${IMAGE_NAME} .'''
sh '''docker build -t ${IMAGE_NAME}-devel devel'''
sh '''docker run -i --name=${IMAGE_NAME} -e EXCLUDE="${EXCLUDE}" -e GIT_BRANCH="${CHANGE_TARGET:-$GIT_BRANCH}" ${IMAGE_NAME}-devel /debug.sh tests'''
// sh '''docker build -t ${IMAGE_NAME}-devel devel'''
sh '''docker run -i --name=${IMAGE_NAME} -e EXCLUDE="${EXCLUDE}" -e GIT_BRANCH="${CHANGE_TARGET:-$GIT_BRANCH}" ${IMAGE_NAME} /debug.sh tests'''
} finally {
sh script: "docker rm -v ${IMAGE_NAME}", returnStatus: true
sh script: "docker rmi ${IMAGE_NAME}", returnStatus: true
Expand Down

0 comments on commit 77a8d0f

Please sign in to comment.