-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJenkinsfile.servlet-10.0.x
More file actions
48 lines (48 loc) · 2.19 KB
/
Copy pathJenkinsfile.servlet-10.0.x
File metadata and controls
48 lines (48 loc) · 2.19 KB
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
pipeline {
agent any
triggers {
//cron ('H */8 * * *')
cron '@daily'
}
options {
buildDiscarder logRotator( numToKeepStr: '50' )
}
parameters {
string( defaultValue: "https://download.eclipse.org/jakartaee/servlet/4.0/jakarta-servlet-tck-4.0.0.zip",
description: 'Url to download TCK () do not change anything if you are not sure :)',
name: 'TCKURL' )
string( defaultValue: "jetty-10.0.x",
description: 'Jetty 10.0.x branch to build',
name: 'JETTY_BRANCH' )
string( defaultValue: 'jdk11', description: 'JDK to build Jetty', name: 'JDKBUILD' )
string( defaultValue: 'jdk8', description: 'JDK to run TCK (use jdk8)', name: 'JDKTCK' )
}
stages {
stage( 'Tck Run' ) {
steps {
script{
def built = build( job: 'servlettck-run', propagate: false,
parameters: [string( name: 'JETTY_BRANCH', value: "${JETTY_BRANCH}" ),
string( name: 'JDKBUILD', value: "${JDKBUILD}" ),
string( name: 'JDKTCK', value: "${JDKTCK}" ),
string( name: 'TCKURL', value: "${TCKURL}" ),
string( name: 'SVLT_NS', value: 'javax' )] )
copyArtifacts(projectName: 'servlettck-run', selector: specific("${built.number}"));
}
}
post {
always {
tckreporttojunit tckReportTxtPath: "${env.WORKSPACE}/JTReport/text/summary.txt", junitFolderPath: 'surefire-reports'
junit testResults: '**/surefire-reports/*.xml'
script{
currentBuild.description = "Run TCK branch ${JETTY_BRANCH}"
}
archiveArtifacts artifacts: "**/surefire-reports/*.xml",allowEmptyArchive: true
archiveArtifacts artifacts: "JTReport/**",allowEmptyArchive: true
archiveArtifacts artifacts: "jetty-home/target/jetty-base/logs/*.*",allowEmptyArchive: true
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: "${env.WORKSPACE}/JTReport/html", reportFiles: 'report.html', reportName: 'TCK Report', reportTitles: ''])
}
}
}
}
}