-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
41 lines (39 loc) · 1.31 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
name: Jenkins Job Builder
description: Updates Jenkins Jobs
branding:
icon: message-circle
color: green
inputs:
jenkins_token:
description: Jenkins API token (https://www.jenkins.io/blog/2018/07/02/new-api-token-system/, preferred), or password
required: true
jjb_dir:
description: Path to directory with JJB YML files, searched recursively
required: false
default: jobs
jjb_ini:
description: Path to jenkins_jobs.ini file. Specify URL and username here. https://jenkins-job-builder.readthedocs.io/en/latest/execution.html
required: false
default: jenkins_jobs.ini
jenkins_cert:
description: Path to Jenkins web server certificate file. Set if you use self-signed cert in Jenkins.
required: false
default: "false"
delete_old:
description: Delete obsolete jobs (--delete-old flag)
required: false
default: "false"
runs:
using: "composite"
steps:
- run: |
set -xeu -o pipefail
pip3 install -r "$GITHUB_ACTION_PATH/requirements.txt"
$GITHUB_ACTION_PATH/gha.sh
shell: bash
env:
INPUT_JENKINS_TOKEN: ${{ inputs.jenkins_token }}
INPUT_JOBS_DIR: ${{ inputs.jjb_dir }}
INPUT_INI_FILE: ${{ inputs.jjb_ini }}
INPUT_JENKINS_CERT: ${{ inputs.jenkins_cert }}
INPUT_DELETE_OLD: ${{ inputs.delete_old }}