Reputation: 8322
Configured Angular CLI project with Jenkins, ng build --env=prod command working fine in Jenkins - windows environment, but in Jenkins - Unix it is throwing below error. Tried below options but no luck
1. set +e
2 #!/bin/bash
[workspace] $ /bin/sh -xe /opt/tomcat8/temp/hudson2478899598123360122.sh
+ set +e
+ ng build --env=prod --bh=./
Error
63% building modules 772/861 modules 89 active ...er-pipe/dist/src/ng2-filter.module.jsKilled
Build step 'Execute shell' marked build as failure
Upvotes: 1
Views: 7333
Reputation: 14037
It is saying "Killed" in the log there. Check syslog or similar on the machine where it's running. Maybe the machine ran out of memory and the OOMKiller took it out.
Upvotes: 1