attempting to use variables
This commit is contained in:
Vendored
+2
-2
@@ -5,8 +5,8 @@ pipeline {
|
|||||||
stage('Init') {
|
stage('Init') {
|
||||||
steps {
|
steps {
|
||||||
sh 'rbenv local 3.2.2'
|
sh 'rbenv local 3.2.2'
|
||||||
def secret = sh(script: 'ruby -rsecurerandom -e "puts SecureRandom.base64(64).inspect"', returnStdout: true)
|
APP_SECRET = sh (script: 'ruby -rsecurerandom -e "puts SecureRandom.base64(64).inspect"', returnStdout: true).trim()
|
||||||
sh 'echo {secret}'
|
sh 'echo ${APP_SECRET}'
|
||||||
//sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb'
|
//sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb'
|
||||||
//sh 'cat .env.rb'
|
//sh 'cat .env.rb'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user