-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add workflow to explicitly trigger EDC jenkins
- Loading branch information
1 parent
f7a3c18
commit e90ffe0
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: "Create Snapshot Build" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
Trigger-Snapshot: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Trigger EF Jenkins. This job waits for Jenkins to complete the publishing, which may take a long time, because every | ||
# module is signed individually, and parallelism is not available. Hence, the increased timeout of 3600 seconds. | ||
# There is no way to cancel the process on Jenkins from withing GitHub. | ||
- name: Call Jenkins API to trigger build | ||
uses: toptal/jenkins-job-trigger-action@master | ||
with: | ||
jenkins_url: "https://ci.eclipse.org/dataspaceconnector/" | ||
jenkins_user: ${{ secrets.EF_JENKINS_USER }} | ||
jenkins_token: ${{ secrets.EF_JENKINS_TOKEN }} | ||
# empty params are needed, otherwise the job will fail. | ||
job_params: | | ||
{ | ||
} | ||
job_name: "GradlePlugins-Snapshot" | ||
job_timeout: "3600" # Default 30 sec. (optional) |