jobs/tools: Add setup-gitlab-webhooks job
This job is responsible to setup the webhooks on swh GitLab repositories enabling to trigger Jenkins builds when pushing changes or creating merge requests. It parses Jenkins jobs builder YAML configuration to get the name of the repos with CI setup and set webhook URLs in GitLab projects through HTTP requests to the GitLab REST API. It is triggered at the end of the swh-jenkins-jobs-builder job after jobs have been reconfigured.
Showing
- jobs/tools/jenkins-jobs-builder.groovy.j2 3 additions, 0 deletionsjobs/tools/jenkins-jobs-builder.groovy.j2
- jobs/tools/setup-gitlab-webhooks.groovy.j2 84 additions, 0 deletionsjobs/tools/setup-gitlab-webhooks.groovy.j2
- jobs/tools/setup-gitlab-webhooks.yaml 25 additions, 0 deletionsjobs/tools/setup-gitlab-webhooks.yaml
Loading
Please register or sign in to comment