1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00

remove unused code

This commit is contained in:
Alejandra Ferreiro Vidal
2018-01-31 17:35:06 +01:00
parent 158392fc73
commit 9cb6f53678

View File

@@ -30,8 +30,6 @@ public class MTABuildTest extends BasePipelineTest {
def currentDir
def otherDir
def mtaBuildShEnv
def mtaBuildScript
def cpe
@@ -40,26 +38,14 @@ public class MTABuildTest extends BasePipelineTest {
void init() {
currentDir = tmp.newFolder().toURI().getPath()[0..-2] //omit final '/'
otherDir = tmp.newFolder().toURI().getPath()[0..-2] //omit final '/'
helper.registerAllowedMethod('readYaml', [Map], {
m ->
return new Yaml().load((m.file as File).text)
})
helper.registerAllowedMethod("dir", [String, Closure], {
s, c ->
currentDir = "${currentDir}/${s}"
c()
})
helper.registerAllowedMethod('pwd', [], { currentDir } )
helper.registerAllowedMethod("withEnv", [List.class, Closure.class],
{ l, c ->
mtaBuildShEnv = l
c()
})
binding.setVariable('PATH', '/usr/bin')
binding.setVariable('JAVA_HOME', '/opt/java')
binding.setVariable('env', [:])
mtaBuildScript = loadScript("mtaBuild.groovy").mtaBuild