Skip to content

ci: fix central mbt build#80

Open
1084565 wants to merge 1 commit into
capire:incidents-app-deployfrom
1084565:patch-1
Open

ci: fix central mbt build#80
1084565 wants to merge 1 commit into
capire:incidents-app-deployfrom
1084565:patch-1

Conversation

@1084565

@1084565 1084565 commented Nov 28, 2024

Copy link
Copy Markdown

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