jenkins-file #15

Merged
bucky merged 25 commits from jenkins-file into master 2023-10-06 20:49:12 -07:00
Showing only changes of commit 2448c93fa7 - Show all commits
Vendored
+3 -1
View File
@@ -9,7 +9,9 @@ pipeline {
stage('Init') {
steps {
sh 'rbenv local 3.2.2'
env.APP_SESSION_SECRET = sh(script: 'ruby secret.rb', returnStdout: true)
script {
env.APP_SESSION_SECRET = sh(script: 'ruby secret.rb', returnStdout: true)
}
sh 'echo "ENV[\\\"APP_SESSION_SECRET\\\"] ||= $(ruby secret.rb)" > .env.rb'
sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"${DB_NAME}\\\"" >> .env.rb'
sh 'cat .env.rb'