forked from axonivy/bpm-beans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
38 lines (33 loc) · 888 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
pipeline {
agent {
dockerfile true
}
parameters {
choice(
name: 'DEPLOY_PROFILE',
choices: ['build', 'central']
)
}
options {
buildDiscarder(logRotator(numToKeepStr: '30', artifactNumToKeepStr: '5'))
}
triggers {
cron '@midnight'
}
stages {
stage('build') {
steps {
script {
maven cmd: 'clean deploy ' +
'-P ${DEPLOY_PROFILE} ' +
'-Dproject-build-plugin.version=7.2.0 ' +
'-Dgpg.skip=true ' +
'-Divy.engine.list.url=http://zugprobldmas/job/Trunk_All/ ' +
'-Divy.engine.directory=${WORKSPACE}/ldap-beans/target/ivyEngine '
archiveArtifacts '*/target/*.jar, */*/target/*.jar, */samples/*/target/*.iar'
junit '**/target/surefire-reports/**/*.xml'
}
}
}
}
}