1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-11-06 09:09:19 +02:00

[E2E Tests step] Allow Conditional check with on_k8s env variable (#3985)

* Conditional check with on_k8s env variable

* Add ON_K8S unit test

Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
This commit is contained in:
Srinikitha Kondreddy
2022-09-06 11:23:12 +02:00
committed by GitHub
parent e610bda779
commit ac9bd28c42
2 changed files with 25 additions and 2 deletions

View File

@@ -141,7 +141,7 @@ void call(Map parameters = [:]) {
}
}
e2ETests["E2E Tests ${index > 1 ? index : ''}"] = {
if (env.POD_NAME) {
if (env.POD_NAME || env.ON_K8S) {
dockerExecuteOnKubernetes(script: script, containerMap: ContainerMap.instance.getMap().get(stageName) ?: [:]) {
e2eTest.call()
}