mirror of
https://github.com/SAP/jenkins-library.git
synced 2026-06-19 22:58:55 +02:00
[fix] Make regex in test Operating System independent.
We searched for the slash, but on win like operating system we have of course a backslash.
This commit is contained in:
@@ -237,7 +237,7 @@ public class CommonStepsTest extends BasePiperTest{
|
||||
private static getSteps() {
|
||||
List steps = []
|
||||
new File('vars').traverse(type: FileType.FILES, maxDepth: 0)
|
||||
{ if(it.getName().endsWith('.groovy')) steps << (it =~ /vars\/(.*)\.groovy/)[0][1] }
|
||||
{ if(it.getName().endsWith('.groovy')) steps << (it =~ /vars[\\\/](.*)\.groovy/)[0][1] }
|
||||
return steps
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user