Skip to content

Starting a Job

Joshua Miller edited this page Jul 27, 2017 · 4 revisions

Start a Jenkins Job using an existing JenkinsClient. When a Job is started, it is placed on the queue until an agent is available to run the job. This queue can be polled until the job is started to find the build number, which is then used to track the status of the Job.

private JenkinsBuildResult StartJob(JenkinsClient client, string jobName)
{
    return client.Jobs.Build(jobName);
}