Skip to content

Commit dca1361

Browse files
Merge pull request #442 from cultuurnet/feature/OPS-1385
OPS-1385: Update Jenkinsfile -
2 parents 385b88e + 18065c7 commit dca1361

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

Jenkinsfile

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,13 @@ pipeline {
2424
GIT_SHORT_COMMIT = build.shortCommitRef()
2525
ARTIFACT_VERSION = "${env.PIPELINE_VERSION}" + '+sha.' + "${env.GIT_SHORT_COMMIT}"
2626
}
27-
stages {
28-
stage('Setup') {
29-
steps {
30-
sh label: 'Install rubygems', script: 'bundle install --deployment'
31-
}
32-
}
33-
stage('Build') {
34-
steps {
35-
sh label: 'Build binaries', script: 'bundle exec rake build'
36-
}
37-
}
38-
stage('Build artifact') {
39-
steps {
40-
sh label: 'Build artifact', script: "bundle exec rake build_artifact ARTIFACT_VERSION=${env.ARTIFACT_VERSION}"
41-
archiveArtifacts artifacts: "pkg/*${env.ARTIFACT_VERSION}*.deb", onlyIfSuccessful: true
42-
}
43-
}
27+
steps {
28+
sh label: 'Install rubygems', script: 'bundle install --deployment'
29+
sh label: 'Build binaries', script: 'bundle exec rake build'
30+
sh label: 'Build artifact', script: "bundle exec rake build_artifact ARTIFACT_VERSION=${env.ARTIFACT_VERSION}"
31+
archiveArtifacts artifacts: "pkg/*${env.ARTIFACT_VERSION}*.deb", onlyIfSuccessful: true
4432
}
33+
4534
post {
4635
cleanup {
4736
cleanWs()
@@ -114,6 +103,8 @@ pipeline {
114103
}
115104

116105
stage('Tag release') {
106+
options { skipDefaultCheckout() }
107+
117108
agent any
118109
steps {
119110
copyArtifacts filter: 'pkg/*.deb', projectName: env.JOB_NAME, flatten: true, selector: specific(env.BUILD_NUMBER)

0 commit comments

Comments
 (0)