mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-03-03 15:02:35 +02:00
Introduce step helper
This commit is contained in:
parent
ec58986ac5
commit
5710ac48ec
15
test/groovy/util/StepHelper.groovy
Normal file
15
test/groovy/util/StepHelper.groovy
Normal file
@ -0,0 +1,15 @@
|
||||
package util;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import groovy.io.FileType
|
||||
|
||||
public class StepHelper {
|
||||
|
||||
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] }
|
||||
return steps
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user