Skip to content

Commit 966bef8

Browse files
committed
updated jenkinsfile
1 parent 7ff3d82 commit 966bef8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Jenkinsfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@ pipeline {
1313
}
1414
stage('Build') {
1515
steps {
16-
sh 'docker build -t php-neo4j:static-analysis .'
16+
sh 'docker build -t php-neo4j:static-analysis-$BRANCH_NAME .'
1717
sh 'docker-compose -p $BRANCH_NAME -f docker/docker-compose.yml build --parallel'
1818
sh 'docker-compose -p $BRANCH_NAME build'
19-
sh 'docker build -t php-neo4j:static-analysis .'
2019
}
2120
}
2221
stage('Static Analysis') {
2322
steps {
24-
sh 'docker run php-neo4j:static-analysis tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run'
25-
sh 'docker run php-neo4j:static-analysis tools/psalm/vendor/bin/psalm --show-info=true'
23+
sh 'docker run php-neo4j:static-analysis-$BRANCH_NAME tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run'
24+
sh 'docker run php-neo4j:static-analysis-$BRANCH_NAME tools/psalm/vendor/bin/psalm --show-info=true'
2625
}
2726
}
2827
stage('Test') {

0 commit comments

Comments
 (0)