Compare commits

..

No commits in common. "69c56ae31a9c1bc80bf8249a3ed06cb2495db0f9" and "5631ae386f17243d594191e18190aeeed1b55897" have entirely different histories.

1 changed files with 1 additions and 25 deletions

26
Jenkinsfile vendored
View File

@ -35,6 +35,7 @@ pipeline {
}
stage('Report results') {
steps {
archive(includes: 'pkg/*.gem')
publishHTML (target: [
allowMissing: false,
alwaysLinkToLastBuild: false,
@ -45,28 +46,6 @@ pipeline {
reportTitles: 'Cucumber Results, RSpec Results, Test Coverage'])
}
}
stage('Build deliverable') {
steps {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
sh ''' #!/usr/local/bin/bash
CUR_DIR=$(pwd)
mkdir -p /tmp/url-shortener
cp -R * /tmp/url-shortener
rm -rf /tmp/url-shortener/features /tmp/url-shortener/spec /tmp/url-shortener/coverage .git*
cd /tmp
tar -czvf url-shortener.tgz url-shortener/
mv url-shortener.tgz $CUR_DIR
'''
}
archiveArtifacts artifacts: 'url-shortener.tgz'
}
}
stage('Clean up deliverable') {
steps {
sh 'rm -rf /tmp/url-shortener'
sh 'rm -rf url-shortener.tgz'
}
}
}
post {
success {
@ -78,8 +57,5 @@ pipeline {
failure {
mattermostSend channel: 'git-messages', color: 'danger', message: "[${JOB_NAME}](${JOB_URL}) [#${BUILD_NUMBER}](${BUILD_URL}) ([Gitea](${GIT_URL}))", text: "Build Failed"
}
always {
cleanWs deleteDirs: true, patterns: [[pattern: '*', type: 'INCLUDE']]
}
}
}