From 950c358ae5465fc72d0559dec6b08c7a1f568509 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Sun, 22 Oct 2023 14:55:06 -0700 Subject: [PATCH] another try --- Jenkinsfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 56d977a..62e0e4f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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"