Delete and post
testing/ogcore-api/pipeline/head There was a failure building this commit Details

develop-jenkins
Nicolas Arenas 2024-10-23 01:35:28 +02:00
parent 85a8ad86c6
commit 2aabf5b188
1 changed files with 23 additions and 34 deletions

57
Jenkinsfile vendored
View File

@ -72,39 +72,28 @@ pipeline {
}
}
}
}
stage ("Publish Image") {
steps {
script {
docker.withRegistry('https://index.docker.io/v1/', "${DOCKER_CREDENTIALS}") {
docker.image("${DOCKER_IDENTITY}").push()
docker.image("${DOCKER_IDENTITY_NGINX}").push()
}
}
}
}
// stage('Tests') {
// steps {
// // Run tests
// sh """
// docker compose exec php bin/phpunit --log-junit /report/phpunit.xml
// docker compose cp php:/report/phpunit.xml ./phpunit.xml
// """
// }
// // post {
// // success {
// // script {
// // docker.withRegistry('https://index.docker.io/v1/', "${DOCKER_CREDENTIALS}") {
// // docker.image("${DOCKER_IDENTITY}").push()
// // docker.image("${DOCKER_IDENTITY_NGINX}").push()
// // }
// // }
// // }
// // }
// }
// }
// post {
// always {
// // Publicar los resultados de las pruebas de PHPUnit
// xunit (
// thresholds: [ skipped(failureThreshold: '0'), failed(failureThreshold: '0') ],
// tools: [ PHPUnit(pattern: 'phpunit.xml') ]
// )
// // Remove containers
// sh 'docker compose -f ${DOCKER_COMPOSE_FILE} down'
// sh 'docker compose -f ${DOCKER_COMPOSE_FILE} rm -f'
// }
// }
}
post {
always {
// Publicar los resultados de las pruebas de PHPUnit
xunit (
thresholds: [ skipped(failureThreshold: '0'), failed(failureThreshold: '0') ],
tools: [ PHPUnit(pattern: 'phpunit.xml') ]
)
// Remove containers
sh 'docker compose -f ${DOCKER_COMPOSE_FILE} down'
sh 'docker compose -f ${DOCKER_COMPOSE_FILE} rm -f'
}
}
}