forked from jenkins-infra/update-center2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
54 lines (47 loc) · 1.58 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
#!groovy
properties([
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '2')),
])
node('linux') {
stage('Prepare') {
deleteDir()
checkout scm
}
stage('Generate') {
withEnv([
"PATH+MVN=${tool 'mvn'}/bin",
"JAVA_HOME=${tool 'jdk8'}",
"PATH+JAVA=${tool 'jdk8'}/bin"
]) {
sh 'mvn -e clean verify'
}
}
stage('Archive Test Report') {
archive 'target/surefire-reports/*-output.txt'
}
stage('Weekly Test Run') {
withEnv([
"JAVA_HOME=${tool 'jdk8'}",
"PATH+JAVA=${tool 'jdk8'}/bin"
]) {
sh 'java -jar target/update-center2-*-bin*/update-center2-*.jar' +
' -id default -connectionCheckUrl http://www.google.com/' +
' -no-experimental -skip-release-history' +
' -www ./output/latest -download-fallback ./output/htaccess -cap 2.107.999 -capCore 2.999'
}
}
stage('LTS Test Run') {
withEnv([
"JAVA_HOME=${tool 'jdk8'}",
"PATH+JAVA=${tool 'jdk8'}/bin"
]) {
sh 'java -jar target/update-center2-*-bin*/update-center2-*.jar' +
' -id default -connectionCheckUrl http://www.google.com/' +
' -no-experimental -skip-release-history' +
' -www ./output/stable -cap 2.107.999 -capCore 2.999 -stableCore'
}
}
stage('Archive Update Site') {
archive 'output/**/*.json, output/htaccess/*'
}
}