Your Jenkins client written in elixir
ExJenkins is client to consume the Jenkins API.
def deps do
[{:ex_jenkins, "~> 0.1.2"}]
end
In your configuration file add something similar to:
config :ex_jenkins,
host: "localhost",
protocol: "http", # http or https. Default is http
port: "8080",
username: "username",
password: "password",
token: "mytoken"
You must as well start ex_jenkins
in your application list:
applications: [:ex_jenkins]
With ExJenkins you can consume the following Jenkins endpoints:
- Jenkins: allows you to restart, or toggle quiet mode in your Jenkins installation
- Jobs: you can execute several operations on your jobs (e.g. you can create, start, stop, get status etc)
- Queues: you can retrieve information on your Jenkins queue
- Folders: you can create and delete folders
- Crumb: you can request a Jenkins crumb
If you want to know more on using ExJenkins you may read the online documentation.
You can also build the docs on your machine with:
mix docs