1. On Jenkins web GUI, add a new job and select "Monitor an external job", name it as "job01"
2. execute from other machine:
$ export JENKINS_HOME=http://jenkins_server:8080
$ java -jar /var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.530.jar "job01" find /
("find /" is the target command)
reference:
https://wiki.jenkins-ci.org/display/JENKINS/Monitoring+external+jobs
沒有留言:
張貼留言