trying to figure out "non-zero return code"

Change-Id: I1cc6a10b4ed235b952b1d411213f3f1543d6c932
This commit is contained in:
Blake Dittmer 2019-11-12 12:28:26 -06:00
parent 2343e06706
commit 5f7ee60b69
5 changed files with 43 additions and 9 deletions

View File

@ -62,6 +62,7 @@
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- job:
name: treasuremap-yaml-lint
nodeset: treasuremap-single-node
@ -69,9 +70,7 @@
run: tools/gate/playbooks/lint-yaml.yaml
voting: true
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- ^py/.*$
- job:
name: treasuremap-seaworthy-site-lint

View File

@ -1,5 +1,4 @@
#!/bin/bash
set -xe
sudo apt-get update
sudo apt-get install --no-install-recommends -y yamllint
sudo apt-get install --no-install-recommends -y yamllint

View File

@ -1,2 +1,15 @@
# Copyright 2018 AT&T Intellectual Property. All other rights reserved.
#
# 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.
#!/bin/bash
yamllint .
yamllint -c ./tools/gate/playbooks/yamllint-config.yaml .

View File

@ -16,6 +16,10 @@
tasks:
- name: lint-yaml
shell: |
set -xe;
./tools/gate/installyamllint.sh
./tools/gate/lintyaml.sh
set -xe
./tools/gate/install-yaml-lint.sh
./tools/gate/lintyaml.sh
args:
chdir: "{{ zuul.project.src_dir }}"
become: yes

View File

@ -0,0 +1,19 @@
# Copyright 2018 AT&T Intellectual Property. All other rights reserved.
#
# 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.
extends: default
rules:
line-length: enable
max: 120