Skip to content
Snippets Groups Projects
Commit 6c3d1269 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

jobs/tools: Add swh-jenkins-dockerfiles job for gitlab repository

This job rebuild the docker images used by Jenkins to run jobs.
It will be triggered on push events for the swh-jenkins-dockerfiles
repository hosted on SWH GitLab.
parent 4de92ce2
No related branches found
No related tags found
No related merge requests found
- job:
- job: &swh_jenkins_dockerfiles
name: jenkins-tools/swh-jenkins-dockerfiles
node: built-in
scm:
......@@ -8,8 +8,8 @@
triggers:
- pollscm:
cron: "H/30 * * * *"
- timed: '@daily'
auth-token: 'ph4br1cat0r'
- timed: "@daily"
auth-token: "ph4br1cat0r"
properties:
- build-discarder:
days-to-keep: 7
......@@ -18,3 +18,32 @@
- ansicolor
builders:
- shell: make checkrebuild all
# we need a job-template to substitute gitlab_* variables
- job-template:
name: jenkins-tools/{dockerfiles_job_name}
scm:
- git:
url: "{gitlab_url}/swh/infra/ci-cd/swh-jenkins-dockerfiles.git"
wipe-workspace: false
auth-token:
properties:
- gitlab:
connection: "{gitlab_connection_name}"
triggers:
- gitlab:
trigger-push: true
trigger-merge-request: true
add-ci-message: true
cancel-pending-builds-on-update: true
# secret jenkins token is generated when executing tox
secret-token: !include-raw: jobs/templates/jenkins-token
publishers:
- gitlab-notifier
<<: *swh_jenkins_dockerfiles
- project:
name: gitlab-swh-jenkins-dockerfiles
dockerfiles_job_name: "{name}"
jobs:
- "jenkins-tools/{dockerfiles_job_name}"
......@@ -25,6 +25,9 @@ pipeline {
setupGitlabWebhook("swh/infra/ci-cd/swh-jenkins-jobs",
"jenkins-tools/swh-jenkins-jobs-builder",
true, true, false)
setupGitlabWebhook("swh/infra/ci-cd/swh-jenkins-dockerfiles",
"jenkins-tools/gitlab-swh-jenkins-dockerfiles",
true, true, false)
setupGitlabWebhook("swh/devel/swh-docs", "DDOC/gitlab-builds",
true, true, false)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment