clean out unnecessary files a little easier
parent
47393a5ead
commit
6fbecd78a4
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue