File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ def call(body) {
1111 def utils = new Utils ()
1212 def envName = config. environment
1313 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+
1416 if (envName) {
1517 // lets try find the actual kubernetes namespace
1618 try {
@@ -29,8 +31,7 @@ def call(body) {
2931 echo " WARNING: Integration tests are current DISABLED for these pipelines!"
3032
3133 } 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
3435 junitResults(body);
3536 }
3637}
You can’t perform that action at this time.
0 commit comments