Skip to content

Commit 58f856c

Browse files
committed
nop
1 parent 42d92d2 commit 58f856c

File tree

2 files changed

+45
-44
lines changed

2 files changed

+45
-44
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Run Jenkins driver tests
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, labeled, unlabeled]
5+
paths:
6+
- 'drivers/**'
7+
8+
jobs:
9+
trigger-driver-test:
10+
strategy:
11+
matrix:
12+
version:
13+
[ 60 ]
14+
15+
runs-on: ubuntu-latest
16+
steps:
17+
18+
- name: Create Commit Status (Pending)
19+
id: status
20+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
21+
with:
22+
script: |
23+
core.setOutput('status_url', (await github.rest.repos.createCommitStatus({
24+
owner: context.repo.owner,
25+
repo: context.repo.repo,
26+
sha: context.sha,
27+
state: 'pending',
28+
description: 'Jenkins job triggered...',
29+
context: 'Driver Tests (${{ matrix.version }})'
30+
})).data.url);
31+
- name: Trigger Jenkins Generic Webhook
32+
env:
33+
JENKINS_WEBHOOK_TOKEN: ${{ secrets.JENKINS_WEBHOOK_TOKEN }}
34+
JENKINS_WEBHOOK_URL: ${{ secrets.JENKINS_WEBHOOK_URL }}
35+
STATUS_URL: ${{ steps.status.outputs.status_url }}
36+
run: |
37+
set +x
38+
curl -s -o /dev/null -X POST \
39+
-H "Content-Type: application/json" \
40+
-H "Authorization: Bearer ${JENKINS_WEBHOOK_TOKEN}" \
41+
-d "{\"status_url\": \"$STATUS_URL\",
42+
\"version\": ${{ matrix.version }},
43+
\"commit\": ${{ github.event.pull_request.head.sha }} }" \
44+
"${JENKINS_WEBHOOK_URL}"
45+
set -x

.github/workflows/jenkins-tests.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)