The following workflow actions are available for the Jenkins Connector integration. Each action corresponds to an endpoint of the Jenkins Connector API.
Action
Description
Get Job info
Gets the status of a Jenkins pipeline job
Trigger build
Triggers a new Jenkins pipeline job
To create a file in your Jenkins repository in your workflow
In the Choose action pane, search for Jenkins Connector and select Get job info.
In the Get job info action, select the Connection to your Jenkins environment.
Configure the input fields as needed.
Field | Description | Required |
---|---|---|
Job path | The full path of your Jenkins job | required |
This action queries the specified Jenkins job and returns information about its status.
To trigger a build in Jenkins in your workflow
In the Choose action pane, search for Jenkins Connector and select Trigger build.
In the Trigger build action, select the Connection to your Jenkins environment.
Configure the input fields as needed.
Field | Description | Required |
---|---|---|
Job | The job that should be triggered. | required |
Await result | Pick if you want to just trigger the pipeline, or if you also want to wait for its result. | required |
Build parameters | A list of parameters that should be set for this pipeline job. | optional |
This action will trigger the specified job to run.
If you set Await result to Only trigger build, the workflow will continue immediately.
If you set Await result to Trigger build and await result, the workflow will wait for the pipeline to finish.