1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
sap-jenkins-library/test/groovy/util/StepHelper.groovy

16 lines
346 B
Groovy
Raw Normal View History

2019-05-22 16:56:50 +02:00
package util
2019-03-21 17:21:55 +02:00
2019-05-22 16:56:50 +02:00
import java.util.List
2019-03-21 17:21:55 +02:00
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
}
}