From 2222d48f23123b2ccbd9d479df3783e06d46925e Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Tue, 17 Mar 2020 11:25:17 -0400 Subject: [PATCH] Attempt to clear dependencies on each step --- Jenkinsfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7fb02a70..a290b9a5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,9 +5,6 @@ pipeline { agent any steps { sh 'curl -sS https://getcomposer.org/installer | php' - sh 'rm -rf ./vendor' - sh 'rm -f composer.lock' - sh 'php composer.phar install --ignore-platform-reqs' } } stage('PHP 7.3') { @@ -19,6 +16,9 @@ pipeline { } steps { sh 'apk add --no-cache git' + sh 'rm -rf ./vendor' + sh 'rm -f composer.lock' + sh 'php composer.phar install --ignore-platform-reqs' sh 'php ./vendor/bin/phpunit --colors=never' } } @@ -31,6 +31,9 @@ pipeline { } steps { sh 'apk add --no-cache git' + sh 'rm -rf ./vendor' + sh 'rm -f composer.lock' + sh 'php composer.phar install --ignore-platform-reqs' sh 'php ./vendor/bin/phpunit --colors=never' } } @@ -43,6 +46,9 @@ pipeline { } steps { sh 'apk add --no-cache git' + sh 'rm -rf ./vendor' + sh 'rm -f composer.lock' + sh 'php composer.phar install --ignore-platform-reqs' sh 'php ./vendor/bin/phpunit --colors=never' } }