Reduce Zuul CI pool workload
Added patterns of files which should and should not trigger jobs on Zuul CI, to reduce workload imposed onto the CI infrastructure. Change-Id: I7081c7a2a4902a29e571dce1133465f2821d71a3
This commit is contained in:
parent
d4ea864eeb
commit
1ad48c0983
@ -14,6 +14,8 @@
|
|||||||
name: airship-airshipctl-roles-test
|
name: airship-airshipctl-roles-test
|
||||||
run: tests/ansible/role-test-runner.yaml
|
run: tests/ansible/role-test-runner.yaml
|
||||||
nodeset: airship-airshipctl-single-node
|
nodeset: airship-airshipctl-single-node
|
||||||
|
files:
|
||||||
|
- ^roles/.*$
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: airship-airshipctl-golint
|
name: airship-airshipctl-golint
|
||||||
@ -21,12 +23,19 @@
|
|||||||
run: playbooks/airship-airshipctl-golint.yaml
|
run: playbooks/airship-airshipctl-golint.yaml
|
||||||
nodeset: airship-airshipctl-single-node
|
nodeset: airship-airshipctl-single-node
|
||||||
voting: false
|
voting: false
|
||||||
|
files: &gofiles
|
||||||
|
- ^Makefile$
|
||||||
|
- ^\.golangci\.yaml$
|
||||||
|
- ^(go\.(mod|sum)|.*\.go)$
|
||||||
|
- ^playbooks/airship-airshipctl-(golint|lint-unit)\.yaml$
|
||||||
|
- ^tools/(coverage_check|golint|gomod_check|install_linter)$
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: airship-airshipctl-lint-unit
|
name: airship-airshipctl-lint-unit
|
||||||
pre-run: playbooks/airship-airshipctl-deploy-docker.yaml
|
pre-run: playbooks/airship-airshipctl-deploy-docker.yaml
|
||||||
run: playbooks/airship-airshipctl-lint-unit.yaml
|
run: playbooks/airship-airshipctl-lint-unit.yaml
|
||||||
nodeset: airship-airshipctl-single-node
|
nodeset: airship-airshipctl-single-node
|
||||||
|
files: *gofiles
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: airship-airshipctl-update-github-issues
|
name: airship-airshipctl-update-github-issues
|
||||||
@ -41,9 +50,11 @@
|
|||||||
name: airship-airshipctl-build-image
|
name: airship-airshipctl-build-image
|
||||||
nodeset: airship-airshipctl-single-node
|
nodeset: airship-airshipctl-single-node
|
||||||
run: playbooks/airship-airshipctl-build-images.yaml
|
run: playbooks/airship-airshipctl-build-images.yaml
|
||||||
irrelevant-files:
|
irrelevant-files: &noncodefiles
|
||||||
- ^.*\.md$
|
- ^certs/.*$
|
||||||
- ^docs/.*$
|
- ^docs/.*$
|
||||||
|
- ^.*\.md$
|
||||||
|
- ^\.github/.*$
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: airship-airshipctl-validate-site-docs
|
name: airship-airshipctl-validate-site-docs
|
||||||
@ -51,6 +62,7 @@
|
|||||||
- playbooks/airship-airshipctl-deploy-docker.yaml
|
- playbooks/airship-airshipctl-deploy-docker.yaml
|
||||||
run: playbooks/airshipctl-gate-runner.yaml
|
run: playbooks/airshipctl-gate-runner.yaml
|
||||||
nodeset: airship-airshipctl-single-node
|
nodeset: airship-airshipctl-single-node
|
||||||
|
irrelevant-files: *noncodefiles
|
||||||
vars:
|
vars:
|
||||||
gate_scripts:
|
gate_scripts:
|
||||||
- ./tools/deployment/01_install_kubectl.sh
|
- ./tools/deployment/01_install_kubectl.sh
|
||||||
@ -84,11 +96,7 @@
|
|||||||
post-run: playbooks/airship-collect-logs.yaml
|
post-run: playbooks/airship-collect-logs.yaml
|
||||||
run: playbooks/airshipctl-gate-runner.yaml
|
run: playbooks/airshipctl-gate-runner.yaml
|
||||||
nodeset: airship-airshipctl-single-16GB-bionic-node
|
nodeset: airship-airshipctl-single-16GB-bionic-node
|
||||||
irrelevant-files:
|
irrelevant-files: *noncodefiles
|
||||||
- ^certs/.*$
|
|
||||||
- ^docs/.*$
|
|
||||||
- ^.*\.md$
|
|
||||||
- ^\.github/.*$
|
|
||||||
vars:
|
vars:
|
||||||
site_name: test-site
|
site_name: test-site
|
||||||
gate_scripts:
|
gate_scripts:
|
||||||
@ -121,6 +129,7 @@
|
|||||||
name: airship-airshipctl-publish-image
|
name: airship-airshipctl-publish-image
|
||||||
parent: airship-airshipctl-build-image
|
parent: airship-airshipctl-build-image
|
||||||
post-run: playbooks/airship-airshipctl-publish-images.yaml
|
post-run: playbooks/airship-airshipctl-publish-images.yaml
|
||||||
|
irrelevant-files: *noncodefiles
|
||||||
secrets:
|
secrets:
|
||||||
- name: airshipctl_image_repo_credentials
|
- name: airshipctl_image_repo_credentials
|
||||||
secret: airshipctl_image_repo_credentials
|
secret: airshipctl_image_repo_credentials
|
||||||
|
@ -15,19 +15,19 @@
|
|||||||
sphinx_build_dir: docs/build
|
sphinx_build_dir: docs/build
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
- airship-airshipctl-roles-test:
|
- openstack-tox-docs: &docs
|
||||||
files:
|
files:
|
||||||
- "roles/*"
|
- ^docs/.*$
|
||||||
- openstack-tox-docs
|
|
||||||
- airship-airshipctl-lint-unit
|
|
||||||
- airship-airshipctl-golint
|
- airship-airshipctl-golint
|
||||||
|
- airship-airshipctl-lint-unit
|
||||||
|
- airship-airshipctl-roles-test
|
||||||
- airship-airshipctl-build-image
|
- airship-airshipctl-build-image
|
||||||
- airship-airshipctl-validate-site-docs
|
- airship-airshipctl-validate-site-docs
|
||||||
# - airship-airshipctl-functional-existing-k8s TODO: Enable this when functional tests exist, and a cluster is up
|
# - airship-airshipctl-functional-existing-k8s TODO: Enable this when functional tests exist, and a cluster is up
|
||||||
- airship-airshipctl-gate-script-runner
|
- airship-airshipctl-gate-script-runner
|
||||||
gate:
|
gate:
|
||||||
jobs:
|
jobs:
|
||||||
- openstack-tox-docs
|
- openstack-tox-docs: *docs
|
||||||
- airship-airshipctl-lint-unit
|
- airship-airshipctl-lint-unit
|
||||||
- airship-airshipctl-build-image
|
- airship-airshipctl-build-image
|
||||||
- airship-airshipctl-validate-site-docs
|
- airship-airshipctl-validate-site-docs
|
||||||
@ -38,5 +38,5 @@
|
|||||||
- airship-airshipctl-upload-git-mirror
|
- airship-airshipctl-upload-git-mirror
|
||||||
promote:
|
promote:
|
||||||
jobs:
|
jobs:
|
||||||
- promote-airship-project-docs
|
- promote-airship-project-docs: *docs
|
||||||
- airship-airshipctl-update-github-issues
|
- airship-airshipctl-update-github-issues
|
||||||
|
Loading…
x
Reference in New Issue
Block a user