mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-16 11:09:33 +02:00
20 lines
641 B
Groovy
20 lines
641 B
Groovy
|
package util;
|
||
|
|
||
|
import org.junit.rules.RuleChain;
|
||
|
|
||
|
import com.lesfurets.jenkins.unit.BasePipelineTest;
|
||
|
import com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration
|
||
|
|
||
|
public class Rules {
|
||
|
|
||
|
public static RuleChain getCommonRules(BasePipelineTest testCase) {
|
||
|
return getCommonRules(testCase, null)
|
||
|
}
|
||
|
|
||
|
public static RuleChain getCommonRules(BasePipelineTest testCase, LibraryConfiguration libConfig) {
|
||
|
return RuleChain.outerRule(new JenkinsSetupRule(testCase, libConfig))
|
||
|
.around(new JenkinsReadYamlRule(testCase))
|
||
|
.around(new JenkinsResetDefaultCacheRule())
|
||
|
}
|
||
|
}
|