-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathJenkinsfile
45 lines (38 loc) · 1.52 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
/*
* Requires: https://github.com/RedHatInsights/insights-pipeline-lib
*/
@Library("github.com/RedHatInsights/insights-pipeline-lib@v3") _
node {
pipelineUtils.cancelPriorBuilds()
scmVars = checkout scm
if (env.CHANGE_TARGET == "prod-stable") {
runStages()
}
}
def runStages() {
openShiftUtils.withUINode {
gitUtils.stageWithContext("Install-integration-tests-env") {
sh "pip install ibutsu-pytest-plugin"
sh "iqe plugin install compliance"
}
gitUtils.stageWithContext("Inject-credentials-and-settings") {
withCredentials([
file(credentialsId: "compliance-settings-credentials-yaml", variable: "creds"),
file(credentialsId: "compliance-settings-local-yaml", variable: "settings")]
) {
sh "cp \$creds \$IQE_VENV/lib/python3.6/site-packages/iqe_compliance/conf"
sh "cp \$settings \$IQE_VENV/lib/python3.6/site-packages/iqe_compliance/conf"
}
}
gitUtils.stageWithContext("Run-integration-tests") {
withEnv([
"ENV_FOR_DYNACONF=prod",
"REQUESTS_CA_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt",
"DYNACONF_MAIN='@json {\"use_beta\":\"True\", \"dynaconf_merge\":\"True\"}'"
]) {
sh "iqe tests plugin compliance -v -s -m compliance_ui --junitxml=junit.xml -o ibutsu_server=https://ibutsu-api.cloud.paas.psi.redhat.com/"
}
junit "junit.xml"
}
}
}