microsoft / AL-Go

The plug-and-play DevOps solution for Business Central app development on GitHub
MIT License
279 stars 114 forks source link

Use AL-Go without subfolder #991

Closed Bartvt21 closed 5 months ago

Bartvt21 commented 6 months ago

Hello,

We want to integrate AL-Go in an existing project. I have added the .AL-Go and .github folder to the project. We have all parts at root-level and we don't have a subfolder containing our project. Please see attachment as reference.

When building and deploying I noticed that the artifacts are not created so the deployment could not finish. Specifically in the build segment I see that the Publish artifacts - Build output is not triggered for running.

I understand why this is not working, but I was wondering if it is possible to integrate AL-Go without the use of a subfolder that has to be specified in the appfolders settings.json?

Best Regards,

Bart van Tongeren

Schermafbeelding 2024-03-19 114540

freddydk commented 6 months ago

in the .AL-Go/settings.json, you could try to set "appFolders": [ "." ] It should work - but haven't tested this.

I would recommend to move the app into a subfolder instead though.

freddydk commented 5 months ago

Did you manage to make this work?

Bartvt21 commented 5 months ago

Hello Freddy,

Unfortunately that is not working. I have also tried some other variants like "/", "", "../". But these are also not working.

freddydk commented 5 months ago

Could you create a small public repo, which showcases your problem (with a test app or like) and submit a link here. Thanks

Bartvt21 commented 5 months ago

https://github.com/Q-Team-Solutions-B-V/AL-Go-No-Subfolder

freddydk commented 5 months ago

It does build the app and publish artifacts on the build: image

What are you seeing that doesn't work?

Bartvt21 commented 5 months ago

The project does not have environment context because of safety reasons. I have invited you to the real project (WODC-BC-Customazation).

freddydk commented 5 months ago

Please modify .AL-Go/settings.json and set appfolders to [ "." ] like in your test repo - and I will see what happens when building that.

I saw that you did a manual modifications to CICD.yaml - you should never do that - you should modify CICDPushBranches in .github/AL-Go-Settings.json and run Update AL-Go System Files.

https://aka.ms/algosettings#cicdPushBranches

Bartvt21 commented 5 months ago

I have committed the change. And thank you for bringing that up 👍

freddydk commented 5 months ago

This looks like a compile error in the app: image

do you assume this is an AL-Go problem?

Bartvt21 commented 5 months ago

I have solved that issue in the meanwhile. I did not have this issue before as you can see in the run history, but I also see that the deployment to the test environment is successful 👍

freddydk commented 5 months ago

So, everything works now?

Bartvt21 commented 5 months ago

Yes, thank you for your support!