[Question]: "artifact": "https://bcartifacts.azureedge.net/sandbox/23.0.12034.13450/w1"
Opened this issue · 3 comments
Marhoon commented
Question
Hi
in ALGOORGSETTINGS
{
"useCompilerFolder": true,
"doNotPublishApps": true,
"artifact": "https://bcartifacts.azureedge.net/sandbox/23.0.12034.13450/w1"
}
How i can make this dynamic which based on the app.json or can 23.0.12034.13450 be based on the app.json?
freddydk commented
/sandbox/*/w1/first
or /sandbox/*/w1/latest
Marhoon commented
Hi Sir thank you for your advice
I used
{
"useCompilerFolder": true,
"doNotPublishApps": true,
"artifact": "https://bcartifacts.azureedge.net/sandbox/*/w1/latest"
}
But getting below error
[Build . (Default) / . (Default)](https://github.com/Dynamics-Business-Solutions/Sorouh-Extension-PTE/actions/runs/10020000706/job/27697192400#step:8:210)
Unexpected error when running action. Error Message: Cannot convert value "*" to type "System.Version". Error: "Version string portion was too short or too long.", StackTrace: at New-BcCompilerFolder, C:\ProgramData\BcContainerHelper\6.0.19\BcContainerHelper\CompilerFolderHandling\New-BcCompilerFolder.ps1: line 51 <- at <ScriptBlock>, C:\ProgramData\BcContainerHelper\6.0.19\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 979 <- at <ScriptBlock>, C:\ProgramData\BcContainerHelper\6.0.19\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 965 <- at <ScriptBlock>, C:\ProgramData\BcContainerHelper\6.0.19\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 947 <- at Run-AlPipeline, C:\ProgramData\BcContainerHelper\6.0.19\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 909 <- at <ScriptBlock>, D:\a\_actions\microsoft\AL-Go-Actions\v5.2\RunPipeline\RunPipeline.ps1: line 361 <- at <ScriptBlock>, D:\a\_temp\6329d779-92c4-4dca-9266-803c7db39b01.ps1: line 4 <- at <ScriptBlock>, <No file>: line 1
freddydk commented
That is not what I suggested.
If you read the documentation I linked to, artifact can be a complete URL (https://...) or a search specification for artifacts - not a combination of both.
My suggestion was a search specification.