mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-18 05:18:24 +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'
|
binding.getVariable('env')['MTA_JAR_LOCATION'] = '/opt/mta'
|
||||||
|
|
||||||
def newDirName = 'newDir'
|
def newDirName = 'newDir'
|
||||||
def newDir = new File("${currentDir}/${newDirName}")
|
def newDirPath = "${currentDir}/${newDirName}"
|
||||||
|
def newDir = new File(newDirPath)
|
||||||
|
|
||||||
newDir.mkdirs()
|
newDir.mkdirs()
|
||||||
new File(newDir, 'mta.yaml') << defaultMtaYaml()
|
new File(newDir, 'mta.yaml') << defaultMtaYaml()
|
||||||
|
|
||||||
helper.registerAllowedMethod('pwd', [], { newDir } )
|
helper.registerAllowedMethod('pwd', [], { newDirPath } )
|
||||||
|
|
||||||
def mtarFilePath = mtaBuildScript.call(script: [commonPipelineEnvironment: cpe], buildTarget: 'NEO')
|
def mtarFilePath = mtaBuildScript.call(script: [commonPipelineEnvironment: cpe], buildTarget: 'NEO')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user