jenkins is operated from the node command line
npm i -g node-jenkin-cli
npm i -S node-jenkin-cli
Options
-
userName (string) : Jenkins user
-
password (string) : Jenkins password
-
host (string) : Jenkins host
[
{
_class: "hudson.model.AllView",
name: "前端",
url: "http://×××/",
},
];
Options
- viewName (string) : view name
{
[
{
_class: 'hudson.model.AllView',
name: 'all',
url: 'http://×××/'
}
],
name: '前端',
property: [],
url: 'http://×××/view/%E6%B7%B1%E5%9C%B3%E5%89%8D%E7%AB%AF/'
}
Options
- pipelineName (string) : Jenkins pipelineName
[
{
currentExecutable: {
_class: "hudson.model.FreeStyleBuild",
url: "http://×××/job/pdm-web-2.3.x-publish/275/",
},
},
{ currentExecutable: null },
];
Options
-
pipelineName (string) : Jenkins pipelineName
-
buildNumber (number) : Jenkins buildNumber