Changeset View
Changeset View
Standalone View
Standalone View
jobs/tools/dockerfiles.yaml
- job: | - job: &swh_jenkins_dockerfiles | ||||
name: jenkins-tools/swh-jenkins-dockerfiles | name: jenkins-tools/swh-jenkins-dockerfiles | ||||
node: built-in | node: built-in | ||||
scm: | scm: | ||||
- git: | - git: | ||||
url: http://forge.softwareheritage.org/source/swh-jenkins-dockerfiles.git | url: http://forge.softwareheritage.org/source/swh-jenkins-dockerfiles.git | ||||
wipe-workspace: false | wipe-workspace: false | ||||
triggers: | triggers: | ||||
- pollscm: | - pollscm: | ||||
cron: "H/30 * * * *" | cron: "H/30 * * * *" | ||||
- timed: '@daily' | - timed: "@daily" | ||||
auth-token: 'ph4br1cat0r' | auth-token: "ph4br1cat0r" | ||||
properties: | properties: | ||||
- build-discarder: | - build-discarder: | ||||
days-to-keep: 7 | days-to-keep: 7 | ||||
wrappers: | wrappers: | ||||
- timestamps | - timestamps | ||||
- ansicolor | - ansicolor | ||||
builders: | builders: | ||||
- shell: make checkrebuild all | - 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" | |||||
ardumont: shouldn't the workspace be cleaned up? | |||||
Done Inline ActionsPhabricator job do not cleanup so I kept the same behavior, not sure if it is required. anlambert: Phabricator job do not cleanup so I kept the same behavior, not sure if it is required. | |||||
Not Done Inline Actionsok ardumont: ok | |||||
wipe-workspace: false | |||||
Not Done Inline Actionsis it required at all (since it's empty and phab specifics, maybe just drop it) or is it somehow to empty that key's associated value (coming from &swh_jenkins_dockerfiles)? ardumont: is it required at all (since it's empty and phab specifics, maybe just drop it)
or is it… | |||||
Done Inline ActionsSetting auth-token to empty deactivates the Jenkins endpoints to start jobs through HTTP requests (which is what Phabricator uses). This setting will go away when Phabricator related jobs will be removed from the Jenkins configuration (once we fully migrated to GitLab). anlambert: Setting auth-token to empty deactivates the Jenkins endpoints to start jobs through HTTP… | |||||
Not Done Inline Actionsok ardumont: ok | |||||
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}" |
shouldn't the workspace be cleaned up?