Closed acjdekorte closed 2 months ago
Hi Ariën,
Seems very custom, but I'd suggest not to use PowerShell-step, but to use "ALOpsDockerExec": https://docs.alops.be/ALOpsSteps/Buildstepsv1/#alops_docker_execute
This will execute a script on the docker container and avoid "invoke-scriptInBcContainer", which is failing at the moment.
Thank you for your suggestion
@acjdekorte did this help?
Last week it did not help. I was running into other problems. For the moment decided to disable the automatic tests, since I have insufficient time to fix it now.
This issue is marked as closed, but we are still getting the same errors, so does it mean that it will not be fixed?
@acjdekorte reported the issue, and closed it as well. We didn't.
If you have this issue, it needs to be re-opened or re-created, including a decent repro-scenario.
Thank you. For now we have just added a "--volume" to the Docker Parameters to share the missing BcContainerHelper folder with the container. Seems to work fine.
Hm, interesting - could you share the complete step?
We have a Yaml Template that sets all the Container parameters like version, type, country etc. Here I added:
if (-not $version.application.contains(".")) {
$version.application = $version.application + ".0"
}
$navVersion = [system.version] ($version.application)
if ($navVersion.Major -ge 24) {
Write-Host "NavVersion: $($NavVersion.major)"
$ShareFolder = "C:\ProgramData\BcContainerHelper:C:\ProgramData\BcContainerHelper"
$additionalParameters += @("--volume ""$ShareFolder""")
}
Write-Host "##vso[task.setvariable variable=docker_parameters;]$additionalParameters"
($version.application may be full version, or only major i.e. 23.4 or 24, and system.version fails if it doesn't contain at least .0).
Describe the bug With the introduction of BC24, we run into a problem with running a powershell script with shared folder. This script imports our license into the docker container to enable testing of the functionality. I am able to reproduce the issue with locally with BCContainerHelper. We have installed dot8 and PS7. Although I am not sure the problem is related to AlOps, I hope you can point me into the right direction.
the used yaml please provide the yaml that you used. It helps you put the yaml like this: The relevant steps
the output Also the complete output is necessary for us to see what is going on. Also use backtics:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem. You can easily paste them in here.
Additional context Add any other context about the problem here.