pipeline
CureNetMulti/pipeline/head This commit looks good Details
CureNetMulti/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Sieciech 2021-08-05 16:48:26 +02:00
parent 6b17bd8ecf
commit 098d1f3059
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -75,7 +75,7 @@ pipeline {
steps { steps {
dir(path: 'src/backend') { 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.test' 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 'sed -i \'s+DATABASE_URL=.*+DATABASE_URL=${DatabaseUrlTesting}+g\' .env.test'
sh 'php8.0 /usr/local/bin/composer dump-env test' sh 'php8.0 /usr/local/bin/composer dump-env test'
sh 'php8.0 bin/console doctrine:schema:update --force'; sh 'php8.0 bin/console doctrine:schema:update --force';
} }
@ -124,7 +124,7 @@ pipeline {
steps { steps {
dir(path: 'src/backend') { 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 'sed -i \'s+DATABASE_URL=.*+DATABASE_URL=${DatabaseUrl}+g\' .env'
sh 'php8.0 /usr/local/bin/composer dump-env prod' sh 'php8.0 /usr/local/bin/composer dump-env prod'
} }