[NodeJS]Jenkins-cli

使用npm 包nestor 触发jenkins job, 达到命令行管理Jenkins功能。

1. install nestor : npm install -g nestor

2. set JENKINS_URL:  

(*nix)

export JENKINS_URL=http://user:pass@host:port/path

(Windows)

set JENKINS_URL=http://user:pass@host:port/path

3. run your job -- for example

  nestor build testjob

原文地址:https://www.cnblogs.com/buhaiqing/p/5480927.html