You've already forked sap-jenkins-library
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:
committed by
GitHub
parent
e610bda779
commit
ac9bd28c42
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user