Compare commits
No commits in common. "69c56ae31a9c1bc80bf8249a3ed06cb2495db0f9" and "5631ae386f17243d594191e18190aeeed1b55897" have entirely different histories.
69c56ae31a
...
5631ae386f
|
|
@ -35,6 +35,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Report results') {
|
stage('Report results') {
|
||||||
steps {
|
steps {
|
||||||
|
archive(includes: 'pkg/*.gem')
|
||||||
publishHTML (target: [
|
publishHTML (target: [
|
||||||
allowMissing: false,
|
allowMissing: false,
|
||||||
alwaysLinkToLastBuild: false,
|
alwaysLinkToLastBuild: false,
|
||||||
|
|
@ -45,28 +46,6 @@ pipeline {
|
||||||
reportTitles: 'Cucumber Results, RSpec Results, Test Coverage'])
|
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 {
|
post {
|
||||||
success {
|
success {
|
||||||
|
|
@ -78,8 +57,5 @@ pipeline {
|
||||||
failure {
|
failure {
|
||||||
mattermostSend channel: 'git-messages', color: 'danger', message: "[${JOB_NAME}](${JOB_URL}) [#${BUILD_NUMBER}](${BUILD_URL}) ([Gitea](${GIT_URL}))", text: "Build Failed"
|
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']]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue