Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 6 additions & 6 deletions vars/packageDockerDU.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down