Add NodeJS executor build step
Currently there is no possibility to setup options for 'NodeJS Plugin' https://wiki.jenkins.io/display/JENKINS/NodeJS+Plugin But 'NodeJS Plugin' is widely used to get ability of executing JS in build step So this patch introduces configuration options for 'Execute NodeJS script' build step. Change-Id: Ie0a9863f235d4199a6de350036394b8d054eb1e9
This commit is contained in:
10
tests/builders/fixtures/nodejs-full.xml
Normal file
10
tests/builders/fixtures/nodejs-full.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project>
|
||||
<builders>
|
||||
<jenkins.plugins.nodejs.NodeJSCommandInterpreter>
|
||||
<command>console.log('Some output');</command>
|
||||
<nodeJSInstallationName>NodeJS_8.1</nodeJSInstallationName>
|
||||
<configId>e3757442-7c21-4a65-a1ff-6c70f5c6df34</configId>
|
||||
</jenkins.plugins.nodejs.NodeJSCommandInterpreter>
|
||||
</builders>
|
||||
</project>
|
||||
5
tests/builders/fixtures/nodejs-full.yaml
Normal file
5
tests/builders/fixtures/nodejs-full.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
builders:
|
||||
- nodejs:
|
||||
name: "NodeJS_8.1"
|
||||
script: "console.log('Some output');"
|
||||
config-id: "e3757442-7c21-4a65-a1ff-6c70f5c6df34"
|
||||
8
tests/builders/fixtures/nodejs-minimal.xml
Normal file
8
tests/builders/fixtures/nodejs-minimal.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project>
|
||||
<builders>
|
||||
<jenkins.plugins.nodejs.NodeJSCommandInterpreter>
|
||||
<command>console.log('Some output');</command>
|
||||
</jenkins.plugins.nodejs.NodeJSCommandInterpreter>
|
||||
</builders>
|
||||
</project>
|
||||
3
tests/builders/fixtures/nodejs-minimal.yaml
Normal file
3
tests/builders/fixtures/nodejs-minimal.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
builders:
|
||||
- nodejs:
|
||||
script: "console.log('Some output');"
|
||||
Reference in New Issue
Block a user