-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (53 loc) · 1.71 KB
/
test-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
48
49
50
51
52
53
name: Test Jenkins Action
on:
workflow_dispatch:
jobs:
dump-context:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
id: dump-github-context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
id: dump-job-context
env:
JOB_CONTEXT: ${{ toJSON(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
id: dump-steps-context
env:
STEPS_CONTEXT: ${{ toJSON(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
id: dump-runner-context
env:
RUNNER_CONTEXT: ${{ toJSON(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
id: dump-strategy-context
env:
STRATEGY_CONTEXT: ${{ toJSON(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
id: dump-matrix-context
env:
MATRIX_CONTEXT: ${{ toJSON(matrix) }}
run: echo "$MATRIX_CONTEXT"
test-action:
runs-on: ubuntu-latest
steps:
- id: test-trigger-action-action
uses: shihyuho/go-jenkins-trigger@main
with:
jenkins-url: "${{ secrets.TEST_JENKINS_URL }}"
jenkins-user: "${{ secrets.TEST_JENKINS_USER }}"
jenkins-pat: "${{ secrets.TEST_JENKINS_PAT }}"
insecure: "${{ secrets.TEST_INSECURE }}"
job: "${{ secrets.TEST_JOB }}"
params: "foo=${{ github.ref }}"
params-json: "${{ secrets.TEST_PARAM_JSON }}"
wait: "${{ secrets.TEST_WAIT }}"
poll-time: "${{ secrets.TEST_POLL_TIME }}"
max-attempts: "${{ secrets.TEST_MAX_APPTEMPTS }}"