-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
43 lines (34 loc) · 933 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
def artserver = Artifactory.server('store.terradue.com')
def buildInfo = Artifactory.newBuildInfo()
buildInfo.env.capture = true
pipeline {
parameters{
// TODO: release parameter for end user
booleanParam(name: 'RELEASE', defaultValue: false, description: 'If this parameter is set, the build will publish the processor as a release ready for production.', )
}
options {
// Kepp 5 builds history
buildDiscarder(logRotator(numToKeepStr: '5'))
}
agent {
node {
// docker community builder
label 'ci-community-docker'
}
}
stages {
// Let's go!
stage('Package & Dockerize') {
steps {
withMaven(
// Maven installation declared in the Jenkins "Global Tool Configuration"
maven: 'apache-maven-3.0.5' ) {
sh 'mvn -B deploy'
}
script {
artserver.publishBuildInfo buildInfo
}
}
}
}
}