Skip to content

Commit a62bace

Browse files
build: add workflow to explicitly trigger EDC jenkins (#56)
1 parent f7a3c18 commit a62bace

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Create Snapshot Build"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
Trigger-Snapshot:
10+
runs-on: ubuntu-latest
11+
steps:
12+
# Trigger EF Jenkins. This job waits for Jenkins to complete the publishing, which may take a long time, because every
13+
# module is signed individually, and parallelism is not available. Hence, the increased timeout of 3600 seconds.
14+
# There is no way to cancel the process on Jenkins from withing GitHub.
15+
- name: Call Jenkins API to trigger build
16+
id: runjenkins
17+
uses: toptal/jenkins-job-trigger-action@master
18+
with:
19+
jenkins_url: "https://ci.eclipse.org/dataspaceconnector/"
20+
jenkins_user: ${{ secrets.EF_JENKINS_USER }}
21+
jenkins_token: ${{ secrets.EF_JENKINS_TOKEN }}
22+
# empty params are needed, otherwise the job will fail.
23+
job_params: |
24+
{
25+
}
26+
job_name: "GradlePlugins-Snapshot"
27+
job_timeout: "3600" # Default 30 sec. (optional)
28+
29+
- name: Log Jenkins URL
30+
run:
31+
echo "::notice title=Jenkins URL::${{ steps.runjenkins.outputs.jenkins_job_url }} "

0 commit comments

Comments
 (0)