Fix: post job can not have files section

- Fix post job, which can not have files section
- Make jobs naming look more like in other Airship projects
- Use git grep in whitespace linter as simplier way to get list of
  files mathing pattern, than find & grep combination

Change-Id: Ie6c82855dd1513d6047160363f2d4606e69673d1
This commit is contained in:
Roman Gorshunov 2019-09-25 21:21:47 +02:00
parent 33ce528756
commit 01b105a114
3 changed files with 14 additions and 17 deletions

View File

@ -15,10 +15,8 @@
- hosts: primary
tasks:
- name: Execute a Whitespace Linter check
command: >
find .
-not -path "*/.git/*"
-type f
-exec egrep -l " +$" {} \;
command: git grep -E -l " +$"
args:
chdir: "{{ zuul.project.src_dir }}"
register: result
failed_when: result.stdout != ""

View File

@ -15,17 +15,17 @@
- project:
check:
jobs:
- porthole-lint
- porthole-image-build-mysqlclient-utility
- airship-porthole-linter
- airship-porthole-images-build-gate-mysqlclient-utility
gate:
jobs:
- porthole-lint
- porthole-image-build-mysqlclient-utility
- airship-porthole-linter
- airship-porthole-images-build-gate-mysqlclient-utility
post:
jobs:
- porthole-image-upload-mysqlclient-utility
- airship-porthole-images-publish-mysqlclient-utility
- nodeset:
name: airship-porthole-single-node
@ -34,7 +34,7 @@
label: ubuntu-xenial
- job:
name: porthole-images
name: airship-porthole-images
abstract: true
timeout: 1800
post-timeout: 1800
@ -50,7 +50,7 @@
- latest
- job:
name: porthole-lint
name: airship-porthole-linter
description: |
Lints files for trailing whitespace
run: tools/gate/playbooks/zuul-linter.yaml

View File

@ -13,12 +13,12 @@
# limitations under the License.
- job:
name: porthole-image-build-mysqlclient-utility
parent: &parent porthole-images
name: airship-porthole-images-build-gate-mysqlclient-utility
parent: &parent airship-porthole-images
vars:
image_name: &image_name mysqlclient-utility
distro_suffix: &distro_suffix ubuntu_xenial
files: &mysqlclient_files
files:
- ^Dockerfiles/mysqlclient-utility/.*$
- ^install_mysqlclient_utility.sh$
- ^mysqlclient-utility/.*$
@ -27,7 +27,7 @@
- ^zuul.d/.*$
- job:
name: porthole-image-upload-mysqlclient-utility
name: airship-porthole-images-publish-mysqlclient-utility
parent: *parent
secrets:
- name: quay_credentials
@ -40,4 +40,3 @@
tags:
dynamic:
commit: true
files: *mysqlclient_files