使用npm 包nestor 觸發jenkins job, 達到命令行管理Jenkins功能。npm
1. install nestor : npm install -g nestorui
2. set JENKINS_URL
: 命令行
(*nix)code
export JENKINS_URL=http://user:pass@host:port/path
(Windows)jenkins
set JENKINS_URL=http://user:pass@host:port/path
3. run your job -- for exampletest
nestor build testjobco