mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
Merge pull request #62 from alejandraferreirovidal/absolutePathBugFix
bugfix absolute path
This commit is contained in:
commit
1eb035b5e1
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user