-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
40 lines (40 loc) · 928 Bytes
/
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
# action.yml
name: jenkins-action-parametrized
author: Antoni Florit Homar
description: github action, to be able to run jenkins jobs remotely with or without parameters
inputs:
url:
description: 'Jenkins URL'
required: true
default: 'toniflorithomar.cat'
user:
description: 'Jenkins USER'
required: true
default: 'test'
token:
description: 'Jenkins USER TOCKEN'
required: true
default: 'test'
job:
description: 'Jenkins USER TOCKEN'
required: true
default: '/job/test'
parameters:
description: 'Jenkins Parameters'
required: true
default: 'test,test2'
outputs:
response:
description: 'Jenkins cURL response'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.url }}
- ${{ inputs.user }}
- ${{ inputs.token }}
- ${{ inputs.job }}
- ${{ inputs.parameters }}
branding:
icon: 'arrow-right-circle'
color: 'gray-dark'