Compare commits
13 Commits
5631ae386f
...
69c56ae31a
| Author | SHA1 | Date |
|---|---|---|
|
|
69c56ae31a | |
|
|
b2cdf60a32 | |
|
|
91f45965a0 | |
|
|
3097cb69aa | |
|
|
eed17d61a3 | |
|
|
9e5a4069a4 | |
|
|
f8c20541d5 | |
|
|
ee07312b86 | |
|
|
e4eabf8aa6 | |
|
|
3ec0f0ff7b | |
|
|
27b32fc8f4 | |
|
|
ceab408ec0 | |
|
|
b56b618a8c |
|
|
@ -35,7 +35,6 @@ 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,
|
||||||
|
|
@ -46,6 +45,28 @@ 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 {
|
||||||
|
|
@ -57,5 +78,8 @@ 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