-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile_new
52 lines (46 loc) · 1.23 KB
/
Jenkinsfile_new
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
44
45
46
47
48
49
50
51
52
@Library('jenkins-shared-library@master') _
pipeline {
agent {
kubernetes(agents()
.maven().version('3.9.4-jdk8').profile('medium')
.startContainers())
}
options {
skipStagesAfterUnstable()
disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr: '28'))
timeout(time: 1, unit: 'HOURS')
}
triggers {
// at least once a day
cron('H H(0-7) * * *')
// every sixty minutes
pollSCM('H/5 * * * *')
}
stages {
stage("SCM Checkout") {
steps {
deleteDir()
checkout scm
}
}
stage("Maven") {
steps {
container('maven') {
script {
mavenDeploy args: "-U"
}
}
}
}
stage("Nexus Lifecycle") {
steps {
container('maven') {
nexusPolicyEvaluation iqApplication: 'org.open.insurance.baloise.qa.ui.taf.gw',
iqScanPatterns: [[scanPattern: '**/target/dependency/*.jar']],
iqStage: 'build'
}
}
}
}
}