This plugin can be useless if this request is merged Starting with 2.0.0.0b3.dev334 you are not able to use this plugin. This functionality is presented in core of JJB
Install it in additional to installed Jenkins Job Builder
pip install -e git+git://github.com/vbotay/jenkins-job-builder-nodejs-executor.git#egg=jjb-nodejs-executorOr specify the package in requirements.txt if you install JJB from sources
Describe nodejs step under builders step in job definition.
- name(optional) - name of preconfigured NodeJS installation
- script(mandatory) - NodeJS script or you can use'!include-raw-escape: some-script.js'
- config-id(optional) - ID of npmrc config file, which is the last field (a 32-digit hexadecimal code) of the path of URL visible after you clicked the file under Jenkins Managed Files.
Example:
builders:
- nodejs:
name: "NodeJS_8.1"
script: "console.log('Some output');"
config-id: "e3757442-7c21-4a65-a1ff-6c70f5c6df34"