hi, Mark

I have to use CLI for now, since I found it's very easy to extend the 
Jenkins than REST for automation.
I implement my custom CLI to get/update the API token of the user.

for the whole automation, I used the Ruby script with the ruby gem 
"hudson-remote-api" which in essence calling the Jenkins REST APIs.
the user token manage is part of my ruby script for automation.

On Sunday, February 17, 2013 11:18:06 PM UTC+8, Mark Waite wrote:
>
> If you're willing to express your automation in Python rather than using a 
> series of CLI commands, you might consider one of the Python libraries that 
> communicate with Jenkins through its REST API.
>
> python-jenkins is the one I use, and it has seemed quick in my usage.
>
> jenkinsapi seems to be another which appears to offer similar capabilities.
>
> autojenkins may also be interesting to consider.
>
> All three seem to be available from PyPi.org
>
> Mark Waite
>
>   ------------------------------
> *From:* Nick Tan <miss...@gmail.com <javascript:>>
> *To:* jenkins...@googlegroups.com <javascript:> 
> *Sent:* Sunday, February 17, 2013 8:04 AM
> *Subject:* use CLI effectively
>  
> hi, 
>
> as we know that CLI is slow since there introduce some hand-shake for key 
> auth, etc.
>
> here is my case, i'd like to execute several commands (include my custom 
> ones), if i call them in each separate CLI command, it quite slow.
> so is there anyway that i can start a session (to finish the hand-shake), 
> and do something in that CLI session without login again?
>
> thanks:) 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-use...@googlegroups.com <javascript:>.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
>
>   

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to