Tuesday, April 9, 2013
Interact with Jenkins through Jenkins.jar
Interact with Jenkins through Jenkins.jar

To get the help commands from Jenkins,
java -jar /Users/users/Downloads/jenkins-cli.jar -s http://localhost:8080/jenkins/ help
Results will be likeTo get the help commands from Jenkins,
java -jar /Users/users/Downloads/jenkins-cli.jar -s http://localhost:8080/jenkins/ help

Ref :
https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CLI
http://localhost:3579/ci/env-vars.html
https://issues.jenkins-ci.org/browse/JENKINS-11691
https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CLI
http://localhost:3579/ci/env-vars.html
https://issues.jenkins-ci.org/browse/JENKINS-11691
Trigger a build from terminal
java -jar /Users/user/Downloads/jenkins-cli.jar -s http://localhost:8080/jenkins/ build DemoJob
Jenkins-cli jar can be downloaded from http://localhost:8080/jenkins/cli
Environment variable values can be accessed from shell($FOO, %FOO%) and Ant ( ${env.FOO} ) like
The parameter are available as environment parameters. So e.g. a shell ($FOO, %FOO%) or Ant ( ${env.FOO} ) can access these values.
https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build
Parameterized Comparisions can be specified like ,
http://stackoverflow.com/questions/7908043/jenkins-how-to-decide-which-of-the-following-jobs-should-be-executed
http://stackoverflow.com/questions/7908043/jenkins-how-to-decide-which-of-the-following-jobs-should-be-executed
Instead of Shell command we can use maven or ant as well.
http://stackoverflow.com/questions/11548285/need-ant-condition-example
http://blog.stefanjaeger.ch/2008/02/05/ant-contrib/
http://stackoverflow.com/questions/11548285/need-ant-condition-example
http://blog.stefanjaeger.ch/2008/02/05/ant-contrib/
--
Thank you.
Regards,
Kaleeswaran.S
Related Posts
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment