-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
40 lines (39 loc) · 1.25 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: 'Trigger Jenkins job with parameters'
description: 'Trigger a Jenkins job with parameters and optionally wait for its result.'
branding:
icon: "check"
color: orange
inputs:
jenkins_job_name:
description: 'Jenkins job name'
required: true
jenkins_base_url:
description: 'Jenkins URL'
required: true
jenkins_user:
description: 'Jenkins user'
required: true
jenkins_password:
description: 'Jenkins password'
required: true
jenkins_job_parameters:
description: 'Jenkins job parameters'
required: false
wait_for_result:
description: 'Wait for result'
required: false
default: 'True'
polling_interval:
description: 'Interval to poll for result'
required: false
runs:
image: "Dockerfile"
using: "docker"
args:
- ${{ inputs.jenkins_job_name }}
- ${{ inputs.jenkins_job_parameters }}
- ${{ inputs.wait_for_result }}
- ${{ inputs.polling_interval }}
- --jenkins_base_url=${{ inputs.jenkins_base_url }}
- --jenkins_user=${{ inputs.jenkins_user }}
- --jenkins_password=${{ inputs.jenkins_password }}