move the local path in the build prod artifact stage to make the tests

quicker
pull/34/head
Adam Townsend 2023-10-23 07:43:30 -07:00
parent 0e9342fab6
commit 35583e404e
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -18,7 +18,6 @@ pipeline {
} }
stage('Build dependencies') { stage('Build dependencies') {
steps { steps {
sh 'bundle config set --local path "vendor"'
sh 'bundle install' sh 'bundle install'
sh 'sequel -m db/migrations sqlite://db/${DB_NAME}' sh 'sequel -m db/migrations sqlite://db/${DB_NAME}'
} }
@ -68,6 +67,7 @@ pipeline {
ZIP_FILE="url-shortener_${BRANCH_NAME}_$(date "+%Y-%m-%d_%H-%M-%S").tgz" ZIP_FILE="url-shortener_${BRANCH_NAME}_$(date "+%Y-%m-%d_%H-%M-%S").tgz"
CUR_DIR=$(pwd) CUR_DIR=$(pwd)
bundle config set --local without 'test' bundle config set --local without 'test'
bundle config set --local path "vendor"
bundle clean bundle clean
mkdir -p /tmp/url-shortener mkdir -p /tmp/url-shortener
cp -R * /tmp/url-shortener cp -R * /tmp/url-shortener