pipeline
CureNetMulti/pipeline/head There was a failure building this commit Details
CureNetMulti/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Sieciech 2021-08-29 10:23:06 +02:00
parent e37815352b
commit b04b6103b9
1 changed files with 4 additions and 4 deletions

8
Jenkinsfile vendored
View File

@ -74,8 +74,8 @@ 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.test"
sh "sed -i \"s+DATABASE_URL=.*+DATABASE_URL=${DatabaseUrlTesting}+g\" .env.test"
sh "APP_SECRET=`php8.0 -r 'echo md5(\"branch=${BRANCH_NAME};\");'` && echo $APP_SECRET | php8.0 ../../tools/putenv/putenv.php .env.test APP_SECRET"
sh "php8.0 ../../tools/putenv/putenv.php .env.test DATABASE_URL \"${DatabaseUrlTesting}\""
sh 'php8.0 /usr/local/bin/composer dump-env test'
sh 'php8.0 bin/console doctrine:schema:update --force';
}
@ -123,8 +123,8 @@ 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 "sed -i \"s+DATABASE_URL=.*+DATABASE_URL=${DatabaseUrl}+g\" .env"
sh "APP_SECRET=`php8.0 -r 'echo md5(\"branch=${BRANCH_NAME};\");'` && echo $APP_SECRET | php8.0 ../../tools/putenv/putenv.php .env APP_SECRET"
sh "php8.0 ../../tools/putenv/putenv.php .env DATABASE_URL \"${DatabaseUrl}\""
sh 'php8.0 /usr/local/bin/composer dump-env prod'
}