Get Builds
Description
Jenkins: Get Builds step fetches builds of a job.
Configurations
No. | Field Name | Description |
---|---|---|
1 | Step Name | Name of the step. This name has to be unique in a single workflow. |
Connection | ||
2 | URL | Provide URL of Jenkins to establish the connection. The data type is String. This field is mandatory. |
3 | Username | Provide a username with appropriate permissions to authenticate to a Jenkins instance. The data type is String. This field is mandatory. |
API Token | ||
4 | Accept Value as variable/static | Leave checkbox unchecked to accept API Token value from a field in the previous steps of the stream using a drop down list. Else enable checkbox for API Token field to appear as Text box. |
5 | API Token | Provide API Token generated on Jenkins instance to authenticate. The data type is String. This field is mandatory. API Token is entered using a widget. The widget handles both Text (static value or environment variable) and Combo (drop down containing values from previous steps). This field is mandatory. If checkbox above is enabled API Token field appears as Text box and accepts static or variable values. Else if checkbox above is disabled Password field appears as a drop down to select fields from previous steps. |
7 | Test Connection | Verifies whether the connection is established or not. Note: For the purpose of verification fields coming from previous steps are not allowed since field values can only be accessed when workflow is in running state. Static values and environment variables are allowed. |
Input Fields | ||
1 | Button: Get | Click on get Button to get a list of Jobs. |
2 | Job Name | Select a Job Name to get its builds. The data type is String. This field is mandatory. |
3 | Latest n… build | Provide a number n - to fetch the latest n builds of a job. The data type is Integer. |
Output Fields | ||
1 | Name | Select the names of the Build attributes to be fetched. The data type is String. This field is mandatory. |
2 | Column | Specify an output column name to hold the value of the selected field. The data type is String. This field is mandatory. |