Delete and post
parent
541653689e
commit
e675af2b24
|
@ -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') {
|
post {
|
||||||
// steps {
|
always {
|
||||||
// // Run tests
|
// Publicar los resultados de las pruebas de PHPUnit
|
||||||
// sh """
|
xunit (
|
||||||
// docker compose exec php bin/phpunit --log-junit /report/phpunit.xml
|
thresholds: [ skipped(failureThreshold: '0'), failed(failureThreshold: '0') ],
|
||||||
// docker compose cp php:/report/phpunit.xml ./phpunit.xml
|
tools: [ PHPUnit(pattern: 'phpunit.xml') ]
|
||||||
// """
|
)
|
||||||
// }
|
// Remove containers
|
||||||
// // post {
|
sh 'docker compose -f ${DOCKER_COMPOSE_FILE} down'
|
||||||
// // success {
|
sh 'docker compose -f ${DOCKER_COMPOSE_FILE} rm -f'
|
||||||
// // 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'
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue