swap the quotes because single quotes doesn't exec the ruby command

pull/27/head
Adam Townsend 2023-10-17 21:30:53 -07:00
parent 1fae85ff9d
commit ff2a0e867d
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -9,7 +9,7 @@ pipeline {
steps { steps {
sh ''' #!/usr/local/bin/bash sh ''' #!/usr/local/bin/bash
rbenv local 3.2.2 rbenv local 3.2.2
echo 'ENV["APP_SESSION_SECRET"] ||= $(ruby -rsecurerandom -e "puts SecureRandom.base64(64).inspect()")' > .env.rb echo "ENV[\\\"APP_SESSION_SECRET\\\"] ||= $(ruby -rsecurerandom -e 'puts SecureRandom.base64(64).inspect()')" > .env.rb
echo 'ENV["DB_NAME"] ||= "${DB_NAME}"' >> .env.rb echo 'ENV["DB_NAME"] ||= "${DB_NAME}"' >> .env.rb
''' '''
} }