Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: CICD Build step fails on step Publishing Apps after adding an appsource dependency in app.json #1306

Open
louagej opened this issue Nov 13, 2024 · 0 comments
Assignees
Labels
bug Something isn't working Under Investigation Issue is under investigation

Comments

@louagej
Copy link

louagej commented Nov 13, 2024

AL-Go version

6.0

Describe the issue

Anything described below can be found in my public repo dependency-demo

  1. Start a new AL-GO Project (or see my public repository we're the issue is simulated)
  2. Add a new app
  3. add an app source dependency in the app.json
  4. merge changes in the main branch
  5. CICD Fails during the step Publishing apps

The Error message

Unexpected error when running action.
Error Message: Extension compilation failed HelloWorld.al(9,21): error AL0185: Codeunit 'MOB Toolbox' is missing
StackTrace: at Invoke-ScriptInBcContainer, C:\ProgramData\BcContainerHelper\6.0.28\BcContainerHelper\ContainerHandling\Invoke-ScriptInNavContainer.ps1: line 113
<- at <ScriptBlock>, C:\ProgramData\BcContainerHelper\6.0.28\BcContainerHelper\AppHandling\Publish-NavContainerApp.ps1: line 379
<- at Publish-BcContainerApp, C:\ProgramData\BcContainerHelper\6.0.28\BcContainerHelper\AppHandling\Publish-NavContainerApp.ps1: line 154 
<- at <ScriptBlock>, C:\ProgramData\BcContainerHelper\6.0.28\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 941
<- at <ScriptBlock>, C:\ProgramData\BcContainerHelper\6.0.28\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 2359
<- at <ScriptBlock>, C:\ProgramData\BcContainerHelper\6.0.28\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 2328
<- at <ScriptBlock>, C:\ProgramData\BcContainerHelper\6.0.28\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 2313
<- at <ScriptBlock>, C:\ProgramData\BcContainerHelper\6.0.28\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1057
<- at Run-AlPipeline, C:\ProgramData\BcContainerHelper\6.0.28\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1019
<- at <ScriptBlock>, D:\a\_actions\microsoft\AL-Go-Actions\v6.0\RunPipeline\RunPipeline.ps1: line 391
<- at <ScriptBlock>, D:\a\_temp\7ead24ca-0110-4da7-8795-e51266c09aa6.ps1: line 3
<- at <ScriptBlock>, D:\a\_actions\microsoft\AL-Go-Actions\v6.0\Invoke-AlGoAction.ps1: line 17
<- at <ScriptBlock>, D:\a\_temp\7ead24ca-0110-4da7-8795-e51266c09aa6.ps1: line 2
<- at <ScriptBlock>, <No file>: line 1

Expected behavior

Since the previous steps resolved and installed the dependencies and the app was compiled without any errors I would assume the publishing apps to the docker container during the build should also go well.

Previous successful steps during build:

  • Run microsoft/AL-Go-Actions/[email protected]
  • Run D:\a_actions\microsoft\AL-Go-Actions\v6.0\RunPipeline/../Invoke-AlGoAction.ps1
  • Analyzing repository
  • Locating previous release
  • Parameters
  • Pulling generic image
  • Creating Container
  • Resolving dependencies
  • Installed Apps
  • Installing app dependencies
  • Compiling apps

Failing Step

  • Publishing apps

Steps to reproduce

Anything described below can be found in my public repo dependency-demo

Additional context (logs, screenshots, etc.)

No response

@louagej louagej added the bug Something isn't working label Nov 13, 2024
@freddydk freddydk added the Under Investigation Issue is under investigation label Nov 20, 2024
@freddydk freddydk self-assigned this Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Under Investigation Issue is under investigation
Projects
None yet
Development

No branches or pull requests

2 participants