1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-03-03 15:02:35 +02:00

bugfix absolute path

This commit is contained in:
Alejandra Ferreiro Vidal 2018-01-31 17:17:01 +01:00
parent c55673daea
commit 485eff7175

View File

@ -120,12 +120,13 @@ public class MTABuildTest extends BasePipelineTest {
binding.getVariable('env')['MTA_JAR_LOCATION'] = '/opt/mta'
def newDirName = 'newDir'
def newDir = new File("${currentDir}/${newDirName}")
def newDirPath = "${currentDir}/${newDirName}"
def newDir = new File(newDirPath)
newDir.mkdirs()
new File(newDir, 'mta.yaml') << defaultMtaYaml()
helper.registerAllowedMethod('pwd', [], { newDir } )
helper.registerAllowedMethod('pwd', [], { newDirPath } )
def mtarFilePath = mtaBuildScript.call(script: [commonPipelineEnvironment: cpe], buildTarget: 'NEO')