Import Zuul v3 job

Import the legacy-gitdm job and convert it to Zuul v3 native format.
Set it up to run in check and gate pipeline.

Previously the job was run in periodic pipeline every day as well. This
is not needed anymore, we use other tools nowadays.

Change-Id: I2876725c81d786a3f0edb7543927ffb520890607
This commit is contained in:
Andreas Jaeger 2018-03-01 20:47:15 +01:00
parent 0bedc37ca3
commit 547072d99f
2 changed files with 28 additions and 0 deletions

14
.zuul.yaml Normal file
View File

@ -0,0 +1,14 @@
- job:
name: gitdm-do-it
parent: unittests
description: |
Run do-it.sh for gitdm repository.
run: playbooks/do-it/run.yaml
- project:
check:
jobs:
- gitdm-do-it
gate:
jobs:
- gitdm-do-it

14
playbooks/do-it/run.yaml Normal file
View File

@ -0,0 +1,14 @@
- hosts: all
tasks:
- name: Run do-it.sh
shell:
cmd: |
set -e
set -x
export TEMPDIR=${TEMPDIR:-$(mktemp -d $(pwd)/dmtmp-XXXXXX)}
export GITBASE=${TEMPDIR}/git
export LP_STATS=n
bash ./do-it.sh
executable: /bin/bash
chdir: '{{ zuul.project.src_dir }}'