-
Notifications
You must be signed in to change notification settings - Fork 2
/
Jenkinsfile.tck.jakarta
46 lines (44 loc) · 1.84 KB
/
Jenkinsfile.tck.jakarta
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
#!groovy
pipeline {
agent { node { label 'linux' } }
//triggers {
// cron '@daily'
//}
options {
buildDiscarder logRotator( numToKeepStr: '50' )
}
parameters {
string( defaultValue: 'master', description: 'GIT branch name to build (master/8.0/servlet_jakarta/xxx)',
name: 'TCK_BRANCH' )
choice(
description: 'Github org',
name: 'GITHUB_ORG',
choices: ['jakartaee','olamy']
)
choice(
description: 'TCK servlet job to run(servlettck-run-jetty-11.0.x/servlettck-run-jetty-10.0.x)',
name: 'TCK_TO_RUN',
choices: ['servlettck-run-12.0.x-ee10', 'servlettck-run-12.0.x-ee9',
'servlettck-run-jetty-11.0.x','websocket/websockettck-run-jetty-11.0.x',
'jsp/jsptck-run-jetty-11.0.x']
)
string( defaultValue: "jetty-12.0.x",
description: 'Jetty 12.0.x branch to build',
name: 'JETTY_BRANCH' )
}
stages {
stage("Build TCK Chain"){
steps {
script {
def built = build job: 'tck/tck_build', propagate: false,
parameters: [string( name: 'TCK_BRANCH', value: "${TCK_BRANCH}" ),
string( name: 'GITHUB_ORG', value: "${GITHUB_ORG}" ),
string( name: 'TCK_TO_RUN', value: "${TCK_TO_RUN}" ),
string( name: 'GLASSFISH_BUNDLE_URL', value: 'https://ci.eclipse.org/jakartaee-tck/job/build-glassfish/lastSuccessfulBuild/artifact/appserver/distributions/glassfish/target/glassfish.zip'),
string( name: 'JETTY_BRANCH', value: "${JETTY_BRANCH}")]
copyArtifacts(projectName: 'tck/tck_build', selector: specific("${built.number}"));
}
}
}
}
}