https://github.com/AshtonKem/Butler.git
git clone 'git://github.com/AshtonKem/Butler.git'
Butler is available on MELPA & MELPA-STABLE. Because of persistent Marmalade problems, I'm currently recommending either of the Melpa versions.
You will need to add (require 'butler)
to one of your init files.
Even the smallest open source project is a team effort. The following people have helped Butler along:
Butler contains a list of servers conveniently named butler-servers. Add servers in the following manner:
(add-to-list 'butler-server-list
'(jenkins "SERVER-NAME"
(server-address . "https://jenkins-address")
(server-user . "user")
(server-password . "pass")))
Butler also supports putting credentials in an encrypted authinfo file, like gnus.
Use the following code to set that up:
(add-to-list 'butler-server-list
'(jenkins "SERVER-NAME"
(server-address . "https://jenkins-addres")
(auth-file . "~/.authinfo.gpg")))
The following line should exist in ~/.authinfo.gpg:
machine SERVER-NAME login username password password
In the future, the first variable will indicate what type of CI server is being used. Currently it's ignored.
View the list of servers with M-x butler-status
. Refresh the list with g
, and trigger the job under the point with t
.
No worries. Jenkins provides an “API” token that can be used like a password, but only for Jenkins. To get your API token follow these steps: