diff --git a/Jenkinsfile b/Jenkinsfile index 7da3621..9ebbc9e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,13 +8,13 @@ pipeline { stages { stage('Build Environmen') { steps { - # Build environment + //Build environment sh 'docker compose up --build -d' } } stage('Install dependencies') { steps { - # Install dependencies + // Install dependencies sh 'docker exec ogcore-php composer install' sh 'docker exec ogcore-php php bin/console lexik:jwt:generate-keypair --overwrite' sh 'docker exec ogcore-php php bin/console doctrine:migrations:migrate --no-interaction' @@ -23,19 +23,19 @@ pipeline { } stage('Tests') { steps { - # Run tests + // Run tests sh 'docker compose exec php bin/phpunit --log-junit phpunit.xml' } } } post { always { - # Publish JUnit test results + // Publish JUnit test results xunit ( thresholds: [ skipped(failureThreshold: 0) , failed(failureThreshold: 0) ], tools: [ PHPUnit(pattern: 'phpunit.xml') ] ) - # Remove containers + // Remove containers sh 'docker compose down' sh 'docker compose rm -f' }