sahara-ci-config/jenkins_job_builder/ci-infra.yaml
Evgeny Sikachev 12406b419d Add flag --delete-old to jjb
This flag will be remove old unused job from jjb.
Manually created jobs will be left.

Change-Id: I735a3ce608886c1e721fa6ac351c0d863962473d
2016-09-16 12:03:13 +03:00

152 lines
5.5 KiB
YAML

- job:
name: integration-cleanup
project-type: freestyle
defaults: global
description: "<b>This job is managed by Jenkins Job Builder, do not edit it through WebUI.\
\n<p>Please use this repository to make changes: <a href=\"https://git.openstack.org/openstack/sahara-ci-config\">https://git.openstack.org/openstack/sahara-ci-config</a></b>\
\n<p>This job destroys vms which were not deleted after integration tests"
disabled: false
node: 'master'
parameters:
- string:
name: PREV_BUILD
default: default
description:
- string:
name: PREV_JOB
default:
description:
- string:
name: HOST_NAME
default:
description:
builders:
- shell: |
rm -rf sahara-ci-config
git clone https://git.openstack.org/openstack/sahara-ci-config
bash $WORKSPACE/sahara-ci-config/slave-scripts/integration-cleanup.sh
- job:
name: jobs-updater
node: master
project-type: freestyle
description: "<b>This job is managed by Jenkins Job Builder, do not edit it through WebUI.\
\n<p>Please use this repository to make changes: <a href=\"https://git.openstack.org/openstack/sahara-ci-config\">https://git.openstack.org/openstack/sahara-ci-config</a></b>\
\n<p><b>Title</b>: Jenkins Jobs Update job <br/>\
\n<b>Description</b>: This job updates all other jobs from sahara-ci-config repo. <br/>\
\n<b>Maintainer</b>: Sergey Kolekonov<br/>"
defaults: global
disabled: false
concurrent: false
scm:
- git:
url: https://git.openstack.org/openstack/sahara-ci-config
branches:
- "master"
triggers:
- pollscm: "* * * * * "
builders:
- shell: "jenkins-jobs update --delete-old jenkins_job_builder"
- job:
name: sahara-ci-syntax-check
project-type: freestyle
defaults: global
description: "<b>This job is managed by Jenkins Job Builder, do not edit it through WebUI.\
\n<p>Please use this repository to make changes: <a href=\"https://git.openstack.org/openstack/sahara-ci-config\">https://git.openstack.org/openstack/sahara-ci-config</a></b>\
\n<p>This job check syntax in *.yaml, *.sh, *.py files"
disabled: false
concurrent: false
node: master
builders:
- gerrit-git-prep
- shell: "bash /opt/ci/files/sahara-ci-syntax-check.sh"
publishers:
- console-log
- job:
name: sahara-ci-layout
project-type: freestyle
defaults: global
description: "<b>This job is managed by Jenkins Job Builder, do not edit it through WebUI.\
\n<p>Please use this repository to make changes: <a href=\"https://git.openstack.org/openstack/sahara-ci-config\">https://git.openstack.org/openstack/sahara-ci-config</a></b>\
\n<p>This job check compatibility zuul layout and jobs from jjb"
disabled: false
concurrent: false
node: master
builders:
- gerrit-git-prep
- shell: "$WORKSPACE/host-scripts/check_layout.sh"
publishers:
- console-log
- job:
name: update-config
node: master
project-type: freestyle
description: "<b>This job is managed by Jenkins Job Builder, do not edit it through WebUI.\
\n<p>Please use this repository to make changes: <a href=\"https://git.openstack.org/openstack/sahara-ci-config\">https://git.openstack.org/openstack/sahara-ci-config</a></b>\
\n<p><b>Title</b>: Update job for Zuul and Nodepool <br/>\
\n<b>Description</b>: This job updates Zuul and Nodepool configs from sahara-ci-config repo. <br/>\
\n<b>Maintainer</b>: Sergey Kolekonov<br/>"
defaults: global
disabled: false
concurrent: false
scm:
- git:
url: https://git.openstack.org/openstack/sahara-ci-config
branches:
- "master"
triggers:
- pollscm: "* * * * * "
builders:
- shell: "$WORKSPACE/slave-scripts/update_config.sh"
- job:
name: update-pool
node: master
project-type: freestyle
description: "<b>This job is managed by Jenkins Job Builder, do not edit it through WebUI.\
\n<p>Please use this repository to make changes: <a href=\"https://git.openstack.org/openstack/sahara-ci-config\">https://git.openstack.org/openstack/sahara-ci-config</a></b>\
\n<p><b>Title</b>: Update Pool <br/>\
\n<b>Description</b>: This job updates vm pool using Nodepool. <br/>\
\n<b>Maintainer</b>: Sergey Kolekonov<br/>"
defaults: global
disabled: false
concurrent: false
properties:
- build-blocker:
blocking-jobs:
- ".*"
triggers:
- timed: '0 6 * * *'
builders:
- shell: "/opt/ci/files/update_pool.sh"
- job:
name: noop
node: master
project-type: freestyle
description: "<b>This job is managed by Jenkins Job Builder, do not edit it through WebUI.\
\n<p>Please use this repository to make changes: <a href=\"https://git.openstack.org/openstack/sahara-ci-config\">https://git.openstack.org/openstack/sahara-ci-config</a></b>\
\n<p><b>Title</b>: Update Pool <br/>\
\n<b>Description</b>: This job updates vm pool using Nodepool. <br/>\
\n<b>Maintainer</b>: Sergey Kolekonov<br/>"
defaults: global
disabled: false