Skip to content

[Bug]: Publish a specific build mode to an environment #2107

@LorenzoVancoillie

Description

@LorenzoVancoillie

AL-Go version

8.1

Describe the issue

I ran my CI/CD that created the artifacts for my 2 build modes.

Image

Artifact Christeyns-Kernel-BC25.00-CLOUDApps-1.0.5.0 has been successfully uploaded! Final size is 1633977 bytes. Artifact ID is 5304376916

Artifact Christeyns-Kernel-BC25.00-ONPREMApps-1.0.5.0 has been successfully uploaded! Final size is 1633974 bytes. Artifact ID is 5304322818

I have an environment defined CDS_LVC that uses buildmode CLOUD
DeployToCDS_LVC": {
"EnvironmentType": "Cloud",
"EnvironmentName": "LVC",
"buildModes": "CLOUD",
"ContinuousDeployment": false,
"runs-on": "DOCKER001",
"Branches": [
"BC25.00"
]

when publishing to this environment, AL-GO does not find an artifact:


Analyzing releases https://api.github.com/repos/***-nv/Christeyns-Kernel/releases
Warning: Current release was specified, but no releases were found. Searching for latest build artifacts instead.
Finding latest successful CICD run for branch BC25.00 in repository ***-nv/Christeyns-Kernel, checking last 90 days
- https://api.github.com/repos/***-nv/Christeyns-Kernel/actions/runs?per_page=100&page=1&exclude_pull_requests=true&status=completed&branch=BC25.00&created=>2025-10-31T14:13:20.9391449Z
Last successful CICD run for branch BC25.00 in repository ***-nv/Christeyns-Kernel is 21480811694 with SHA 34680b3041c9b93c0701d8eee0e5e1a46acdb54b
Getting artifacts for workflow run 21480811694, mask Apps, projects * and version *
No more artifacts found for workflow run 21480811694
Found 0 artifacts for mask Apps and projects * in workflow run 21480811694
Finding latest successful CICD run for branch BC25.00 in repository ***-nv/Christeyns-Kernel, checking last 90 days
- https://api.github.com/repos/***-nv/Christeyns-Kernel/actions/runs?per_page=100&page=1&exclude_pull_requests=true&status=completed&branch=BC25.00&created=>2025-10-31T14:13:23.2568016Z
Last successful CICD run for branch BC25.00 in repository ***-nv/Christeyns-Kernel is 21480811694 with SHA 34680b3041c9b93c0701d8eee0e5e1a46acdb54b
Getting artifacts for workflow run 21480811694, mask TestApps, projects * and version *
No more artifacts found for workflow run 21480811694
Found 0 artifacts for mask TestApps and projects * in workflow run 21480811694
Finding latest successful CICD run for branch BC25.00 in repository ***-nv/Christeyns-Kernel, checking last 90 days
- https://api.github.com/repos/***-nv/Christeyns-Kernel/actions/runs?per_page=100&page=1&exclude_pull_requests=true&status=completed&branch=BC25.00&created=>2025-10-31T14:13:25.9666542Z
Last successful CICD run for branch BC25.00 in repository ***-nv/Christeyns-Kernel is 21480811694 with SHA 34680b3041c9b93c0701d8eee0e5e1a46acdb54b
Getting artifacts for workflow run 21480811694, mask Dependencies, projects * and version *
No more artifacts found for workflow run 21480811694
Found 0 artifacts for mask Dependencies and projects * in workflow run 21480811694
Finding latest successful CICD run for branch BC25.00 in repository ***-nv/Christeyns-Kernel, checking last 90 days
- https://api.github.com/repos/***-nv/Christeyns-Kernel/actions/runs?per_page=100&page=1&exclude_pull_requests=true&status=completed&branch=BC25.00&created=>2025-10-31T14:13:28.4080854Z
Last successful CICD run for branch BC25.00 in repository ***-nv/Christeyns-Kernel is 21480811694 with SHA 34680b3041c9b93c0701d8eee0e5e1a46acdb54b
Getting artifacts for workflow run 21480811694, mask PowerPlatformSolution, projects * and version *
No more artifacts found for workflow run 21480811694
Found 0 artifacts for mask PowerPlatformSolution and projects * in workflow run 21480811694
Enabling Microsoft telemetry...
Error: Unexpected error when running action. Error Message: Could not find any artifacts for projects: '*', version: 'latest', StackTrace: at <ScriptBlock>, C:\actions-runner\_work\_actions\microsoft\AL-Go-Actions\v8.1\GetArtifactsForDeployment\GetArtifactsForDeployment.ps1: line 121 <- at <ScriptBlock>, C:\actions-runner\_work\_temp\5531beba-a03c-4d77-ad15-44dc6d4f8467.ps1: line 3 <- at <ScriptBlock>, C:\actions-runner\_work\_actions\microsoft\AL-Go-Actions\v8.1\Invoke-AlGoAction.ps1: line 21 <- at <ScriptBlock>, C:\actions-runner\_work\_temp\5531beba-a03c-4d77-ad15-44dc6d4f8467.ps1: line 2 <- at <ScriptBlock>, <No file>: line 1
Error: Process completed with exit code 1.

Last week I opened another issue about running a release action for a build mode, that feature was not implemented. But afaik this should work or am I misunderstanding something?

Expected behavior

AL-GO should find the artifact related to the buildmode defined in the environment setting

Steps to reproduce

run CI/CD for a buildmode
run publish to an environment with that environment set to use the build mode

Additional context (logs, screenshots, etc.)

No response
Internal work item: AB#620791

Metadata

Metadata

Assignees

Labels

Fix ReadyFix ReadyShippedFeature is included in the latest versionacceptedThe issue has been acceptedbugSomething isn't working

Type

No type

Projects

Status

✅ Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions