-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathaction.yml
47 lines (47 loc) · 1.24 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
41
42
43
44
45
46
47
# action.yml
name: 'Run jenkins jobs'
description: 'Build jenkins jobs using the jenkins api'
inputs:
jenkins-url:
description: 'full Jenkins site url'
required: true
jenkins-token:
description: 'Jenkins api token'
required: true
jenkins-user:
description: "Jenkins username"
required: true
jenkins-job:
description: 'Jenkins job name'
required: true
jenkins-job-params:
description: "Jenkins job params. JSON string. i.e '{'STRING_PARAM': 'value1', 'BOOLEAN_PARAM': false}' "
required: false
default: '{}'
jenkins-wait-job:
description: "Wait for the job build status"
required: false
default: 'wait'
jenkins-ssl-verify:
description: "Verify SSL certificate"
required: false
default: true
outputs:
job_build_number:
description: 'buildnumber of the triggered job'
job_status:
description: 'Jenkins job build status'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.jenkins-url}}
- ${{ inputs.jenkins-token}}
- ${{ inputs.jenkins-user}}
- ${{ inputs.jenkins-job }}
- ${{ inputs.jenkins-job-params}}
- ${{ inputs.jenkins-wait-job }}
- ${{ inputs.jenkins-ssl-verify }}
branding:
icon: 'arrow-up-right'
color: 'yellow'