Skip to content

Commit 7ac284c

Browse files
authored
Migrate to new build server (#1)
* Tweak build pipeline for new build server * Fix repo/workspace path
1 parent d421e72 commit 7ac284c

2 files changed

Lines changed: 10 additions & 34 deletions

File tree

Jenkinsfile

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33

44
pipeline {
55
agent {
6-
dockerfile {
7-
dir 'repo/sdk-image'
8-
}
6+
label 'atlassian'
97
}
108

119
options {
@@ -18,28 +16,20 @@ pipeline {
1816

1917
stages {
2018
stage('Build plugin') {
21-
environment {
22-
// we'll be one directory deep. this is a little brittle, but there's no clean way
23-
// to use $WORKSPACE here if it contains spaces it seems
24-
ATLAS_OPTS = "-Dmaven.repo.local=../maven-cache"
25-
}
26-
2719
steps {
28-
dir("repo/") {
29-
script {
30-
if (params.RELEASE_VERSION != "") {
31-
sh "atlas-mvn versions:set -DnewVersion=${params.RELEASE_VERSION}"
32-
}
20+
script {
21+
if (params.RELEASE_VERSION != "") {
22+
sh "atlas-mvn versions:set -DnewVersion=${params.RELEASE_VERSION}"
3323
}
34-
35-
sh 'atlas-unit-test'
36-
sh 'atlas-package'
3724
}
25+
26+
sh 'atlas-unit-test'
27+
sh 'atlas-package'
3828
}
3929

4030
post {
4131
success {
42-
archiveArtifacts artifacts: 'repo/target/codedx-bamboo-plugin*.jar', fingerprint: true, onlyIfSuccessful: true
32+
archiveArtifacts artifacts: 'target/codedx-bamboo-plugin*.jar', fingerprint: true, onlyIfSuccessful: true
4333

4434
script {
4535
if (params.RELEASE_VERSION != "") {
@@ -54,11 +44,8 @@ pipeline {
5444
}
5545

5646
post {
57-
always {
58-
cleanWs deleteDirs: true, patterns: [[pattern: 'repo/target/', type: 'INCLUDE']]
59-
}
6047
failure {
61-
slackSend botUser: true, channel: '#devchat', color: 'danger', message: "Bamboo Plugin build FAILED (<${env.BUILD_URL}|Open>)"
48+
slackSend botUser: true, channel: '#codedx-devchat', color: 'danger', message: "Bamboo Plugin build FAILED (<${env.BUILD_URL}|Open>)"
6249
}
6350
}
64-
}
51+
}

sdk-image/Dockerfile

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)