From bf922017213ea4825aefbd927f339ae83698064b Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Tue, 17 Oct 2023 18:02:40 -0700 Subject: [PATCH] removed some unnecessary lines, and check what's in the current directory --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 48a54c0..345ca90 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,6 @@ pipeline { sh 'rbenv local 3.2.2' sh 'echo "ENV[\\\"APP_SESSION_SECRET\\\"] ||= $(ruby secret.rb)" > .env.rb' sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"${DB_NAME}\\\"" >> .env.rb' - sh 'cat .env.rb' } } stage('Build dependencies') { @@ -46,10 +45,10 @@ pipeline { catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { sh ''' #!/usr/local/bin/bash ZIP_FILE="url-shortener_$(date "+%Y-%m-%d_%H-%M-%S").tgz" - echo $ZIP_FILE CUR_DIR=$(pwd) mkdir -p /tmp/url-shortener cp -R * /tmp/url-shortener + ls -lah cp .env /tmp/url-shortener/ cd /tmp/url-shortener rm -rf features spec coverage db/*.db .git* Jenkinsfile *.html secret.rb