Skip to content

Commit

Permalink
#4 env variables are now also expanded in suites-field.
Browse files Browse the repository at this point in the history
  • Loading branch information
qfs committed Apr 4, 2018
1 parent 9abe8b7 commit 3acc992
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/org/jenkinsci/plugins/qftest/ScriptCreator.java
Expand Up @@ -231,6 +231,7 @@ private void runner() {
String slash = "\\";
for (Suites s : suitefield) {
String suiteName = s.getSuitename();
suiteName = envVars.expand(suiteName);
if (suiteName.contains(".qft")) {
script.append("echo [qftest plugin] Running test-suite ");
script.append(s.getSuitename());
Expand Down Expand Up @@ -488,15 +489,16 @@ private void runnerShell() {
}

if (!suitesFileProvided) {
String suite = s.getSuitename();
suite = envVars.expand(suite);
if (daemonSelected) {
String suite = s.getSuitename();
if ( suite.startsWith("/") || suite.startsWith("\\")) {
script.append(" \""+ suite+"\" ");
} else {
script.append(" \""+getWorkspaceDir() + "/" + suite+"\" ");
}
} else {
appendSuites(s.getSuitename());
appendSuites(suite);
}
}
script.append("\n");
Expand Down

0 comments on commit 3acc992

Please sign in to comment.