clean out unnecessary files a little easier

pull/26/head
Adam Townsend 2023-10-17 10:39:17 -07:00
parent 47393a5ead
commit 6fbecd78a4
1 changed files with 3 additions and 2 deletions

5
Jenkinsfile vendored
View File

@ -45,14 +45,15 @@ pipeline {
reportTitles: 'Cucumber Results, RSpec Results, Test Coverage']) reportTitles: 'Cucumber Results, RSpec Results, Test Coverage'])
} }
} }
stage('Build deliverable') { stage('Build production deliverable') {
steps { steps {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
sh ''' #!/usr/local/bin/bash sh ''' #!/usr/local/bin/bash
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
rm -rf /tmp/url-shortener/features /tmp/url-shortener/spec /tmp/url-shortener/coverage /tmp/url-shortener/db/*.db .git* cd /tmp/url-shortener
rm -rf features spec coverage db/*.db .git* Jenkinsfile *.html
cd /tmp cd /tmp
tar -czvf url-shortener.tgz url-shortener/ tar -czvf url-shortener.tgz url-shortener/
mv url-shortener.tgz $CUR_DIR mv url-shortener.tgz $CUR_DIR