From a0e8e1647d864b2061d1fba35506aaded4a42763 Mon Sep 17 00:00:00 2001 From: Sieciech Date: Thu, 5 Aug 2021 13:01:09 +0200 Subject: [PATCH] pipeline --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0007c2e..72850d5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -74,7 +74,7 @@ pipeline { stage('Backend') { steps { dir(path: 'src/backend') { - sh """APP_SECRET=`php8.0 -r "echo md5(\\"branch=${BRANCH_NAME};\\");"` && sed -i "s/APP_SECRET=.*/APP_SECRET=${APP_SECRET}/g" .env""" + sh 'APP_SECRET=`php8.0 -r "echo md5(\\"branch=${BRANCH_NAME};\\");"` && sed -i "s/APP_SECRET=.*/APP_SECRET=${APP_SECRET}/g" .env.test' sh """sed -i 's/DATABASE_URL=.*/DATABASE_URL=${DatabaseUrlTesting}/g' .env.test""" sh 'php8.0 /usr/local/bin/composer dump-env test' sh 'php8.0 bin/console doctrine:schema:update --force'; @@ -123,7 +123,7 @@ pipeline { stage('Backend') { steps { dir(path: 'src/backend') { - sh """APP_SECRET=`php8.0 -r "echo md5(\\"branch=${BRANCH_NAME};\\");"` && sed -i 's/APP_SECRET=.*/APP_SECRET=${APP_SECRET}/g' .env""" + sh 'APP_SECRET=`php8.0 -r "echo md5(\\"branch=${BRANCH_NAME};\\");"` && sed -i 's/APP_SECRET=.*/APP_SECRET=${APP_SECRET}/g' .env' sh """sed -i 's/DATABASE_URL=.*/DATABASE_URL=${DatabaseUrl}/g' .env""" sh 'php8.0 /usr/local/bin/composer dump-env prod' }