wrap it in a script

pull/15/head
Adam Townsend 2023-10-06 17:25:53 -07:00
parent ee5a6e673b
commit ef9cef8915
1 changed files with 3 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -5,7 +5,9 @@ pipeline {
stage('Init') {
steps {
sh 'rbenv local 3.2.2'
script {
APP_SECRET = sh (script: 'ruby -rsecurerandom -e "puts SecureRandom.base64(64).inspect"', returnStdout: true).trim()
}
sh 'echo ${APP_SECRET}'
//sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb'
//sh 'cat .env.rb'