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 721ce33adb - Show all commits
Vendored
+4 -3
View File
@@ -5,9 +5,10 @@ pipeline {
stage('Init') {
steps {
sh 'rbenv local 3.2.2'
sh 'echo \\\'ENV[\\\"APP_SESSION_SECRET\\\"]=$(ruby -rsecurerandom -e \\\"puts SecureRandom.base64(64).inspect\\\")\\\' > .env.rb'
sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb'
sh 'cat .env.rb'
def secret = sh(script: 'ruby -rsecurerandom -e "puts SecureRandom.base64(64).inspect"', returnStdout: true)
sh 'echo {secret}'
//sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb'
//sh 'cat .env.rb'
}
}
}