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:
vbotay
2017-10-23 17:01:23 +03:00
committed by Vasily Gorin
parent a23f8bf8db
commit 5c05925d00
5 changed files with 54 additions and 0 deletions

View 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>

View File

@@ -0,0 +1,5 @@
builders:
- nodejs:
name: "NodeJS_8.1"
script: "console.log('Some output');"
config-id: "e3757442-7c21-4a65-a1ff-6c70f5c6df34"

View 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>

View File

@@ -0,0 +1,3 @@
builders:
- nodejs:
script: "console.log('Some output');"