File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ def call(body) {
11
11
def utils = new Utils ()
12
12
def envName = config. environment
13
13
def kubeNS = " -Dfabric8.environment=${ envName} "
14
+ def cmd = cmd ?: " mvn org.apache.maven.plugins:maven-failsafe-plugin:integration-test ${ kubeNS} -P openshift-it -Dit.test=${ config.itestPattern} -DfailIfNoTests=${ config.failIfNoTests} org.apache.maven.plugins:maven-failsafe-plugin:verify"
15
+
14
16
if (envName) {
15
17
// lets try find the actual kubernetes namespace
16
18
try {
@@ -29,8 +31,7 @@ def call(body) {
29
31
echo " WARNING: Integration tests are current DISABLED for these pipelines!"
30
32
31
33
} else {
32
- sh " mvn org.apache.maven.plugins:maven-failsafe-plugin:integration-test ${ kubeNS} -P openshift-it -Dit.test=${ config.itestPattern} -DfailIfNoTests=${ config.failIfNoTests} org.apache.maven.plugins:maven-failsafe-plugin:verify"
33
-
34
+ sh cmd
34
35
junitResults(body);
35
36
}
36
37
}
You can’t perform that action at this time.
0 commit comments