Miniaml changes
testing/ogcore-api/pipeline/head There was a failure building this commit Details

develop-jenkins
Nicolas Arenas 2024-10-23 00:35:45 +02:00
parent adce8f4d24
commit b1c59266e3
1 changed files with 6 additions and 8 deletions

14
Jenkinsfile vendored
View File

@ -16,7 +16,7 @@ pipeline {
}
stages {
stage('Build Environmen') {
stage('Build Environment') {
steps {
script {
app = docker.build("${DOCKER_IDENTITY}", '-f docker/Dockerfile-php .')
@ -34,9 +34,7 @@ pipeline {
stage('Run containers') {
steps {
sh """
docker compose -f ${DOCKER_COMPOSE_FILE} up -d
"""
sh "docker compose -f ${DOCKER_COMPOSE_FILE} up -d"
}
}
stage('Install dependencies') {
@ -65,8 +63,8 @@ pipeline {
success {
script {
docker.withRegistry('https://index.docker.io/v1/', "${DOCKER_CREDENTIALS}") {
app.push()
nginx.push()
app.push("${DOCKER_IDENTITY}")
nginx.push("${DOCKER_IDENTITY_NGINX}")
}
}
}
@ -81,8 +79,8 @@ pipeline {
tools: [ PHPUnit(pattern: 'phpunit.xml') ]
)
// Remove containers
sh 'docker compose -f docker-compose-ci.yaml down'
sh 'docker compose -f docker-compose-ci.yaml rm -f'
sh 'docker compose -f ${DOCKER_COMPOSE_FILE} down'
sh 'docker compose -f ${DOCKER_COMPOSE_FILE} rm -f'
}
}
}