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

ci: fix central mbt build #80

Open
wants to merge 1 commit into
base: incidents-app-deploy
Choose a base branch
from

Conversation

1084565
Copy link

@1084565 1084565 commented Nov 28, 2024

For the mbt build to work npm install needs to be called in the before-all section. Without that the npx can not be called and the mbt fails.

Without this fix the build fails in all clean (ci) environments without prior npm install.

From the build logs:

info  mtaBuild - Executing mta build call: "mbt build --mtar capire.sflight.mtar --platform CF --source ./ --target /home/jenkins/agent/workspace/abc"

leads to

error mtaBuild - [2024-11-28 12:21:00] ERROR the "before-all"" build failed: could not execute the "npx -p @sap/cds-dk cds build --profile production,node" command: exit status 1
info  mtaBuild - make: *** [Makefile_20241128122054.mta:28: pre_build] Error 1

For the mbt build to work _npm install_ needs to be called in the _before-all_ section. Without that the npx command can not be called and the mbt fails. 

Without this fix the build fails in all clean (ci) environments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant