forked from opensearch-project/opensearch-build-libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PerfTest_Jenkinsfile
53 lines (52 loc) · 2.05 KB
/
PerfTest_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
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
pipeline {
agent none
stages {
stage('perf-test') {
parallel {
stage('test-with-security') {
steps {
script {
def bundleManifestObj = downloadBuildManifest(
url: BUNDLE_MANIFEST_URL,
path: BUNDLE_MANIFEST
)
runPerfTestScript(bundleManifest: BUNDLE_MANIFEST,
buildId: BUILD_ID,
architecture: ARCHITECTURE,
insecure: false,
workload: TEST_WORKLOAD,
testIterations: TEST_ITERATIONS,
warmupIterations: WARMUP_ITERATIONS,
stackNameSuffix: env.BUILD_NUMBER)
}
}
}
stage('test-without-security') {
steps {
script {
def bundleManifestObj = downloadBuildManifest(
url: BUNDLE_MANIFEST_URL,
path: BUNDLE_MANIFEST
)
runPerfTestScript(bundleManifest: BUNDLE_MANIFEST,
buildId: BUILD_ID,
architecture: ARCHITECTURE,
insecure: true,
workload: TEST_WORKLOAD,
testIterations: TEST_ITERATIONS,
warmupIterations: WARMUP_ITERATIONS,
stackNameSuffix: env.BUILD_NUMBER)
}
}
}
}
}
}
}