-
Notifications
You must be signed in to change notification settings - Fork 83
/
Jenkinsfile
120 lines (120 loc) · 2.46 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
pipeline {
agent {
kubernetes {
inheritFrom 'my-agent-pod'
yaml """
apiVersion: v1
kind: Pod
spec:
containers:
- name: maven
image: repairnator/ci-env:latest
command:
- cat
tty: true
env:
- name: "MAVEN_OPTS"
value: "-Duser.home=/home/jenkins"
volumeMounts:
- name: settings-xml
mountPath: /home/jenkins/.m2/settings.xml
subPath: settings.xml
readOnly: true
- name: m2-repo
mountPath: /home/jenkins/.m2/repository
resources:
limits:
memory: "8Gi"
cpu: "2"
requests:
memory: "8Gi"
cpu: "2"
volumes:
- name: settings-xml
secret:
secretName: m2-secret-dir
items:
- key: settings.xml
path: settings.xml
- name: m2-repo
emptyDir: {}
"""
}
}
stages {
stage('repairnator-core'){
environment {
TEST_PATH="src/repairnator-core/"
}
steps {
container('maven') {
sh 'bash ./.ci/ci-run.sh'
}
}
options {
timeout(time: 15, unit: "MINUTES")
}
}
stage('repairnator-realtime'){
environment {
TEST_PATH="src/repairnator-realtime/"
TEST_LIST="**"
GITHUB_OAUTH=credentials('github-bot-token')
}
steps {
container('maven') {
sh 'bash ./.ci/ci-run-with-core-pipeline.sh'
}
}
options {
timeout(time: 15, unit: "MINUTES")
}
}
stage('repairnator-jenkins-plugin'){
environment {
TEST_PATH="src/repairnator-jenkins-plugin/"
}
steps {
container('maven') {
sh 'bash ./.ci/ci-run.sh'
}
}
options {
timeout(time: 15, unit: "MINUTES")
}
}
stage('repairnator-maven-repair'){
environment {
TEST_PATH="src/maven-repair/"
TEST_LIST="**"
}
steps {
container('maven') {
sh 'bash ./.ci/ci-maven-repair.sh'
}
}
options {
timeout(time: 30, unit: "MINUTES")
}
}
stage('repairnator-pipeline'){
environment {
TEST_PATH="src/repairnator-pipeline/"
TEST_LIST="**"
}
steps {
container('maven') {
sh 'bash ./.ci/ci-run-with-core.sh'
}
}
options {
timeout(time: 1, unit: "HOURS")
}
}
}
post {
always {
junit testResults: '**/target/surefire-reports/*.xml'
}
}
}