Skip to content

Commit 0635eeb

Browse files
committed
Jenkins: Fixed executing test scripts
"sh it" ran "it" as a java File object instead of passing the string to a shell. This commit fixes that.
1 parent ec2760c commit 0635eeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ node {
5353
def scr = new File("${it}/scripts/")
5454
scr.traverse(type: FILES, filter: ~/.*\/test[^\/]*/) {
5555
try {
56-
sh it
56+
sh "${it}"
5757
}
5858
catch (exc) {
5959
fails.add(it.toString().substring(env.WORKSPACE.length()))

0 commit comments

Comments
 (0)