Skip to content

Commit 359b869

Browse files
Add jenkins config
1 parent 220362f commit 359b869

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/jenkins.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Trigger Jenkins
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
trigger-jenkins:
10+
runs-on: self-hosted
11+
steps:
12+
- name: Start build
13+
env:
14+
JENKINS_USER: admin
15+
JENKINS_API_TOKEN: ${{ secrets.JENKINS_API_TOKEN }}
16+
JENKINS_TRIGGER_TOKEN: ${{ secrets.JENKINS_TRIGGER_TOKEN }}
17+
run: curl -X POST \
18+
-u "${JENKINS_USER}:${JENKINS_API_TOKEN}" \
19+
"http://localhost:8080/job/nwdaf/build?token=${JENKINS_TRIGGER_TOKEN}"

0 commit comments

Comments
 (0)