Jenkiexs (jenkiexs v1.1.1) 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, %Jenkiexs.Builds.Build{}}
iex> Jenkiexs.Jobs.build("my-job", param1: "foo", param2: "bar")
{:ok, %Jenkiexs.Builds.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{pid: 1, ref: 2, owner: 3}}
iex> Jenkiexs.Jobs.build_monitored("my-job", param1: "foo", param2: "bar")
{:ok, %Task{pid: 1, ref: 2, owner: 3}}
iex> Jenkiexs.Jobs.build_monitored("my-job", param1: "foo", param2: "bar")
{:error, "reason"}
Returns the last build of a given job.