Merge pull request 'added bundle config to only use prod gems and bundle clean to remove unnecessary gems from the current poject' (#33) from build-deployment-artifact into master

Reviewed-on: #33

closes bucky/url-shortener#32
pull/34/head
bucky 2023-10-23 07:31:15 -07:00
commit ca4182d798
1 changed files with 2 additions and 0 deletions

2
Jenkinsfile vendored
View File

@ -66,6 +66,8 @@ pipeline {
sh ''' #!/usr/local/bin/bash sh ''' #!/usr/local/bin/bash
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 clean
mkdir -p /tmp/url-shortener mkdir -p /tmp/url-shortener
cp -R * /tmp/url-shortener cp -R * /tmp/url-shortener
cp .env.rb /tmp/url-shortener/ cp .env.rb /tmp/url-shortener/