removed some unnecessary lines, and check what's in the current
directorypull/26/head
parent
1f2e3d41dd
commit
bf92201721
|
|
@ -10,7 +10,6 @@ pipeline {
|
||||||
sh 'rbenv local 3.2.2'
|
sh 'rbenv local 3.2.2'
|
||||||
sh 'echo "ENV[\\\"APP_SESSION_SECRET\\\"] ||= $(ruby secret.rb)" > .env.rb'
|
sh 'echo "ENV[\\\"APP_SESSION_SECRET\\\"] ||= $(ruby secret.rb)" > .env.rb'
|
||||||
sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"${DB_NAME}\\\"" >> .env.rb'
|
sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"${DB_NAME}\\\"" >> .env.rb'
|
||||||
sh 'cat .env.rb'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build dependencies') {
|
stage('Build dependencies') {
|
||||||
|
|
@ -46,10 +45,10 @@ pipeline {
|
||||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||||
sh ''' #!/usr/local/bin/bash
|
sh ''' #!/usr/local/bin/bash
|
||||||
ZIP_FILE="url-shortener_$(date "+%Y-%m-%d_%H-%M-%S").tgz"
|
ZIP_FILE="url-shortener_$(date "+%Y-%m-%d_%H-%M-%S").tgz"
|
||||||
echo $ZIP_FILE
|
|
||||||
CUR_DIR=$(pwd)
|
CUR_DIR=$(pwd)
|
||||||
mkdir -p /tmp/url-shortener
|
mkdir -p /tmp/url-shortener
|
||||||
cp -R * /tmp/url-shortener
|
cp -R * /tmp/url-shortener
|
||||||
|
ls -lah
|
||||||
cp .env /tmp/url-shortener/
|
cp .env /tmp/url-shortener/
|
||||||
cd /tmp/url-shortener
|
cd /tmp/url-shortener
|
||||||
rm -rf features spec coverage db/*.db .git* Jenkinsfile *.html secret.rb
|
rm -rf features spec coverage db/*.db .git* Jenkinsfile *.html secret.rb
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue