-
Notifications
You must be signed in to change notification settings - Fork 3
/
Jenkinsfile
40 lines (38 loc) · 1.5 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
#!groovy
pipeline {
agent any
triggers {
cron '@daily'
}
options {
buildDiscarder logRotator(numToKeepStr: '100')
}
parameters {
string(defaultValue: '12.0.16-SNAPSHOT', description: 'Jetty Version', name: 'JETTY_VERSION')
string(defaultValue: 'jetty-12.0.x', description: 'Jetty Branch', name: 'JETTY_BRANCH')
string(defaultValue: 'main-12.0.x', description: 'Jetty perf Branch', name: 'JETTY_PERF_BRANCH')
string(defaultValue: 'load-jdk17', description: 'JDK to use', name: 'JDK_TO_USE')
string(defaultValue: '*', description: 'Test pattern to use', name: 'TEST_TO_RUN')
}
stages {
stage('Jetty Perf Run') {
steps {
script {
def built = build(job: '/load_testing/jetty-perf-main', propagate: true,
parameters: [string(name: 'JETTY_VERSION', value: "${JETTY_VERSION}"),
string(name: 'JETTY_BRANCH', value: "${JETTY_BRANCH}"),
string(name: 'JDK_TO_USE', value: "${JDK_TO_USE}"),
string(name: 'JETTY_PERF_BRANCH', value: "${JETTY_PERF_BRANCH}"),
string(name: 'TEST_TO_RUN', value: "${TEST_TO_RUN}"),
])
copyArtifacts(projectName: '/load_testing/jetty-perf-main', selector: specific("${built.number}"));
}
}
post {
always {
archiveArtifacts artifacts: "**/target/reports/**/**", allowEmptyArchive: true, onlyIfSuccessful: false
}
}
}
}
}