attempting to use variables

pull/15/head
Adam Townsend 2023-10-06 17:23:56 -07:00
parent 721ce33adb
commit ee5a6e673b
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -5,8 +5,8 @@ pipeline {
stage('Init') {
steps {
sh 'rbenv local 3.2.2'
def secret = sh(script: 'ruby -rsecurerandom -e "puts SecureRandom.base64(64).inspect"', returnStdout: true)
sh 'echo {secret}'
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'
}