diff --git a/README.md b/README.md index 0beb962..ab6e614 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,9 @@ Contributions to the GeneXus-KBBuilder-Shared-Library are not currently being ac Thank you for your understanding! ## Versions +- v2.0.4 + - Add support for whitespaces in paths, in method packageDockerDU. + - v2.0.3 - Add flag: cleanCustomSpecialFolders in intallGeneXusUsingURI to prevent unchecked accumulation of generated genexus installation directories diff --git a/vars/packageDockerDU.groovy b/vars/packageDockerDU.groovy index 8657741..a8f8030 100644 --- a/vars/packageDockerDU.groovy +++ b/vars/packageDockerDU.groovy @@ -146,17 +146,17 @@ def call(Map args = [:]) { throw new Exception("[ERROR] Unsupported package extension: ${extension}") } powershell script: """ - if (Test-Path -Path ${fullDockerContextLocationPath}) { Remove-Item -Path ${fullDockerContextLocationPath} -Recurse -Force } - New-Item -ItemType Directory -Path ${fullDockerContextLocationPath} | Out-Null - Copy-Item -Path ${gxdprojFilePath} -Destination ${fullDockerContextLocationPath} -Recurse -Force - Copy-Item -Path ${args.localKBPath}\\${args.targetPath}\\Web\\${args.duName}_${env.BUILD_NUMBER}_gxdprojCallTree.log -Destination ${fullDockerContextLocationPath} -Recurse -Force + if (Test-Path -Path "${fullDockerContextLocationPath}") { Remove-Item -Path "${fullDockerContextLocationPath}" -Recurse -Force } + New-Item -ItemType Directory -Path "${fullDockerContextLocationPath}" | Out-Null + Copy-Item -Path "${gxdprojFilePath}" -Destination "${fullDockerContextLocationPath}" -Recurse -Force + Copy-Item -Path "${args.localKBPath}\\${args.targetPath}\\Web\\${args.duName}_${env.BUILD_NUMBER}_gxdprojCallTree.log" -Destination "${fullDockerContextLocationPath}" -Recurse -Force """ bat label: "Create Docker context", script: "${msBuildCommand}" powershell script: """ - if (Test-Path -Path ${gxdprojFilePath}) { Remove-Item -Path ${gxdprojFilePath} -Recurse -Force } - if (Test-Path -Path ${args.localKBPath}\\${args.targetPath}\\Web\\${args.duName}_${env.BUILD_NUMBER}_gxdprojCallTree.log) { Remove-Item -Path ${args.localKBPath}\\${args.targetPath}\\Web\\${args.duName}_${env.BUILD_NUMBER}_gxdprojCallTree.log -Recurse -Force } + if (Test-Path -Path "${gxdprojFilePath}") { Remove-Item -Path "${gxdprojFilePath}" -Recurse -Force } + if (Test-Path -Path "${args.localKBPath}\\${args.targetPath}\\Web\\${args.duName}_${env.BUILD_NUMBER}_gxdprojCallTree.log") { Remove-Item -Path "${args.localKBPath}\\${args.targetPath}\\Web\\${args.duName}_${env.BUILD_NUMBER}_gxdprojCallTree.log" -Recurse -Force } """ return fullDockerContextLocationPath