You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using gulp-brass for RPM generation on our Jenkins build server.
Up until recently this has been working without any issue, however since migrating our application (web) from javascript to typescript, and as such updating dependencies in our package.json file we have started to get errors from the sourceTask API call made to the gulp-brass-npm module.
This task gets triggered from a Jenkins build job we have configured, the build log in Jenkins shows the following error:
+ gulp build-rpm
[16:26:36] Using gulpfile ~/jobs/interACT_Release/workspace/gulpfile.js
[16:26:36] Starting 'clean'...
[16:26:40] Finished 'clean' after 3.89 s
[16:26:40] Starting 'setup'...
[16:26:40] Finished 'setup' after 9.76 ms
[16:26:40] Starting 'source'...
[16:26:40] Starting 'service'...
[16:26:40] Finished 'service' after 92 ms
[16:27:52] 'source' errored after 1.2 min
[16:27:52] Error: Command failed: /bin/sh -c npm install
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] license should be a valid SPDX license expression
sh: typings: command not found
npm ERR! Linux 2.6.32-71.el6.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm v2.14.12
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] postinstall: `typings install`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'typings install'.
npm ERR! This is most likely a problem with the interACT package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! typings install
npm ERR! You can get their info via:
npm ERR! npm owner ls interACT
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /var/lib/jenkins/jobs/interACT_Release/workspace/brass_build/BUILD/npm-debug.log
at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:821:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
Prior to calling this gulp task we perform other tasks to build our application, install dependencies (npm\bower install), etc, and move all built sources to a dist folder in our project directory. These build tasks work just fine on Jenkins, no errors get thrown when we perform an npm install prior to running our rpm build task.
We have also made sure that the typings npm module is installed globally on our jenkins environment.
This post install task already gets run when we build our application into our dist folder prior to our rpm tasks being run.
I can see in the sourceTask source code in the gulp-brass-npm library how it executes an npm install command and sets the node environment variable to production.
I am thinking maybe I need to find a way to only run the post install task if the node environment variable is equal to development.
This is probably beyond the scope of your library, but I thought I'd ask here in case you have any experience with this and could offer further guidance.
The text was updated successfully, but these errors were encountered:
We are using gulp-brass for RPM generation on our Jenkins build server.
Up until recently this has been working without any issue, however since migrating our application (web) from javascript to typescript, and as such updating dependencies in our package.json file we have started to get errors from the sourceTask API call made to the gulp-brass-npm module.
Here is our RPM gulp task we are currently using:
This task gets triggered from a Jenkins build job we have configured, the build log in Jenkins shows the following error:
Prior to calling this gulp task we perform other tasks to build our application, install dependencies (npm\bower install), etc, and move all built sources to a dist folder in our project directory. These build tasks work just fine on Jenkins, no errors get thrown when we perform an npm install prior to running our rpm build task.
We have also made sure that the typings npm module is installed globally on our jenkins environment.
In our package.json we have the following:
This post install task already gets run when we build our application into our dist folder prior to our rpm tasks being run.
I can see in the sourceTask source code in the gulp-brass-npm library how it executes an npm install command and sets the node environment variable to production.
I am thinking maybe I need to find a way to only run the post install task if the node environment variable is equal to development.
This is probably beyond the scope of your library, but I thought I'd ask here in case you have any experience with this and could offer further guidance.
The text was updated successfully, but these errors were encountered: