another try

This commit is contained in:
2023-10-22 14:55:06 -07:00
parent f81199e31b
commit 950c358ae5
Vendored
+3 -5
View File
@@ -9,9 +9,10 @@ pipeline {
steps {
sh ''' #!/usr/local/bin/bash
rbenv local 3.2.2
echo "# frozen_string_literal: true\n" > env.rb
echo "ENV['APP_SESSION_SECRET'] ||= '$(ruby -rsecurerandom -e 'puts SecureRandom.base64(64)')'" >> .env.rb
echo "# frozen_string_literal: true\n" > .env.rb
echo "ENV['APP_SESSION_SECRET'] ||= $(ruby -rsecurerandom -e 'puts SecureRandom.base64(64)')" >> .env.rb
echo "ENV['DB_NAME'] ||= '${DB_NAME}'" >> .env.rb
cat .env.rb
'''
}
}
@@ -53,9 +54,6 @@ pipeline {
}
stage('Build production deliverable') {
steps {
when {
expression { buildResult != 'FAILURE' }
}
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
sh ''' #!/usr/local/bin/bash
ZIP_FILE="url-shortener_${BRANCH_NAME}_$(date "+%Y-%m-%d_%H-%M-%S").tgz"