porthole/tools/gate/playbooks/zuul-linter.yaml
Roman Gorshunov 01b105a114 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
2019-09-25 22:21:53 +02:00

23 lines
818 B
YAML

# Copyright 2017 The Openstack-Helm Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- hosts: primary
tasks:
- name: Execute a Whitespace Linter check
command: git grep -E -l " +$"
args:
chdir: "{{ zuul.project.src_dir }}"
register: result
failed_when: result.stdout != ""