From ff2a0e867d771bcd26887769677b358a19a3ab88 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Tue, 17 Oct 2023 21:30:53 -0700 Subject: [PATCH] swap the quotes because single quotes doesn't exec the ruby command --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 32415cb..b0dd9d9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,7 @@ pipeline { steps { sh ''' #!/usr/local/bin/bash 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 ''' }