jenkiexs v0.9.4 Jenkiexs View Source
Provide functions to interact with a Jenkins server.
Link to this section Summary
Functions
Starts a job with no parameter.
Starts a job with the given parameters.
Starts a job with no parameter and returns a task that monitor the job for completeness.
Starts a job and returns a task that monitor its execution.
Returns the last build of a given job.
Link to this section Functions
Starts a job with no parameter.
Starts a job with the given parameters.
Examples
iex> Jenkiexs.Jobs.build("my-job")
{:ok, %Build{}}
iex> Jenkiexs.Jobs.build("my-job", param1: "foo", param2: "bar")
{:ok, %Build{}}
iex> Jenkiexs.Jobs.build("my-job")
{:error, "reason"}
Starts a job with no parameter and returns a task that monitor the job for completeness.
Starts a job and returns a task that monitor its execution.
Examples
iex> Jenkiexs.Jobs.build_monitored("my-job")
{:ok, %Task{} :: {:ok, %Build{}}}
iex> Jenkiexs.Jobs.build_monitored("my-job", param1: "foo", param2: "bar")
{:ok, %Task{} :: {:ok, %Build{}}}
iex> Jenkiexs.Jobs.build_monitored("my-job", param1: "foo", param2: "bar")
{:error, "reason"}
Returns the last build of a given job.