From 00119f97232d3f6ada77b2d5ec57a40d2502e266 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Tue, 17 Oct 2023 21:32:30 -0700 Subject: [PATCH] use env.DB_NAME to access the environment variable --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b0dd9d9..3985cef 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,7 @@ pipeline { 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["DB_NAME"] ||= "${DB_NAME}"' >> .env.rb + echo 'ENV["DB_NAME"] ||= "${env.DB_NAME}"' >> .env.rb ''' } }