Yaml linter execution and config improved
Change-Id: I29c124f9c84f6d5c7efc77edc7c7a85e75392b15
This commit is contained in:
parent
15bcb96925
commit
548ad8ff87
|
@ -40,12 +40,11 @@
|
||||||
triggers:
|
triggers:
|
||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
name: fuel-ccp-docs-build-jobs
|
name: fuel-ccp-docs-build-jobs
|
||||||
jobs:
|
jobs:
|
||||||
- 'build-all-docs-manual-job-{repo}'
|
- 'build-all-docs-manual-job-{repo}'
|
||||||
- 'build-all-docs-triggered-job-{repo}'
|
- 'build-all-docs-triggered-job-{repo}'
|
||||||
repo:
|
repo:
|
||||||
- 'fuel-ccp-specs':
|
- 'fuel-ccp-specs':
|
||||||
branch: 'master'
|
branch: 'master'
|
||||||
|
|
|
@ -45,22 +45,22 @@
|
||||||
artifacts: '*'
|
artifacts: '*'
|
||||||
latest-only: false
|
latest-only: false
|
||||||
- post-tasks:
|
- post-tasks:
|
||||||
- matches:
|
- matches:
|
||||||
- log-text: ''
|
- log-text: ''
|
||||||
escalate-status: true
|
escalate-status: true
|
||||||
run-if-job-successful: false
|
run-if-job-successful: false
|
||||||
script: |
|
script: |
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
export ENV_NAME="env-k8s-kargo-$BUILD_TAG"
|
export ENV_NAME="env-k8s-kargo-$BUILD_TAG"
|
||||||
|
|
||||||
source /home/jenkins/venv-fuel-devops-3.0/bin/activate
|
source /home/jenkins/venv-fuel-devops-3.0/bin/activate
|
||||||
echo "Running on $NODE_NAME: $ENV_NAME"
|
echo "Running on $NODE_NAME: $ENV_NAME"
|
||||||
|
|
||||||
dos.py erase $ENV_NAME || true
|
dos.py erase $ENV_NAME || true
|
||||||
deactivate
|
deactivate
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: fuel-ccp-mcp-qa
|
name: fuel-ccp-mcp-qa
|
||||||
|
|
|
@ -12,4 +12,3 @@
|
||||||
global: true
|
global: true
|
||||||
triggers:
|
triggers:
|
||||||
- zuul
|
- zuul
|
||||||
|
|
||||||
|
|
|
@ -5,19 +5,19 @@
|
||||||
name: mcpinstaller
|
name: mcpinstaller
|
||||||
scm:
|
scm:
|
||||||
- git:
|
- git:
|
||||||
url: 'ssh://nextgen-ci@review.fuel-infra.org:29418/{scm-repo}'
|
url: 'ssh://nextgen-ci@review.fuel-infra.org:29418/{scm-repo}'
|
||||||
branches:
|
branches:
|
||||||
- '{scm-branch}'
|
- '{scm-branch}'
|
||||||
basedir: '{scm-basedir}'
|
basedir: '{scm-basedir}'
|
||||||
|
|
||||||
- scm:
|
- scm:
|
||||||
name: openstack
|
name: openstack
|
||||||
scm:
|
scm:
|
||||||
- git:
|
- git:
|
||||||
url: 'https://git.openstack.org/openstack/{scm-repo}.git'
|
url: 'https://git.openstack.org/openstack/{scm-repo}.git'
|
||||||
branches:
|
branches:
|
||||||
- '{scm-branch}'
|
- '{scm-branch}'
|
||||||
basedir: '{scm-basedir}'
|
basedir: '{scm-basedir}'
|
||||||
|
|
||||||
- scm:
|
- scm:
|
||||||
name: fuel-infra
|
name: fuel-infra
|
||||||
|
@ -29,7 +29,6 @@
|
||||||
branches:
|
branches:
|
||||||
- '{scm-branch}'
|
- '{scm-branch}'
|
||||||
|
|
||||||
|
|
||||||
- scm:
|
- scm:
|
||||||
name: zuul_repo
|
name: zuul_repo
|
||||||
scm:
|
scm:
|
||||||
|
@ -56,7 +55,6 @@
|
||||||
# Static repositories
|
# Static repositories
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# SSH credentials
|
# SSH credentials
|
||||||
#
|
#
|
||||||
|
@ -82,7 +80,7 @@
|
||||||
#
|
#
|
||||||
# Publishers
|
# Publishers
|
||||||
#
|
#
|
||||||
#TODO: check target fuel-ccp-ci
|
# TODO: check target fuel-ccp-ci
|
||||||
- publisher:
|
- publisher:
|
||||||
name: logs-public
|
name: logs-public
|
||||||
publishers:
|
publishers:
|
||||||
|
|
|
@ -63,6 +63,6 @@
|
||||||
- project:
|
- project:
|
||||||
name: Build MCP Docker images and store them into Docker registry.
|
name: Build MCP Docker images and store them into Docker registry.
|
||||||
jobs:
|
jobs:
|
||||||
- 'mcp-build-images-latest'
|
- 'mcp-build-images-latest'
|
||||||
- 'mcp-build-images-build-number'
|
- 'mcp-build-images-build-number'
|
||||||
- 'mcp-clean-docker-registry'
|
- 'mcp-clean-docker-registry'
|
||||||
|
|
|
@ -33,13 +33,13 @@
|
||||||
- project:
|
- project:
|
||||||
name: verify-ci-bashate
|
name: verify-ci-bashate
|
||||||
jobs:
|
jobs:
|
||||||
- 'verify-bashate-{repo}'
|
- 'verify-bashate-{repo}'
|
||||||
repo:
|
repo:
|
||||||
- 'project-config'
|
- 'project-config'
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
name: verify-ci-jjb
|
name: verify-ci-jjb
|
||||||
jobs:
|
jobs:
|
||||||
- 'verify-jjb-{repo}'
|
- 'verify-jjb-{repo}'
|
||||||
repo:
|
repo:
|
||||||
- 'project-config'
|
- 'project-config'
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
### Temp yaml syntax checker script.
|
|
||||||
set -e
|
|
||||||
for file in $(find . -name '*.yaml'); do
|
|
||||||
yamllint -d relaxed $file
|
|
||||||
done
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
workdir=$(dirname $0)
|
||||||
|
yamllint -c $workdir/yamllint.yaml $(find . -not -path '*/\.*' -type f -name '*.yaml')
|
|
@ -0,0 +1,21 @@
|
||||||
|
extends: default
|
||||||
|
|
||||||
|
rules:
|
||||||
|
braces:
|
||||||
|
max-spaces-inside: 1
|
||||||
|
comments:
|
||||||
|
level: error
|
||||||
|
comments-indentation:
|
||||||
|
level: warning
|
||||||
|
document-end:
|
||||||
|
present: no
|
||||||
|
document-start:
|
||||||
|
level: error
|
||||||
|
present: no
|
||||||
|
empty-lines:
|
||||||
|
max: 1
|
||||||
|
max-start: 0
|
||||||
|
max-end: 0
|
||||||
|
line-length:
|
||||||
|
level: warning
|
||||||
|
max: 120
|
4
tox.ini
4
tox.ini
|
@ -10,8 +10,10 @@ deps =
|
||||||
usedevelop = False
|
usedevelop = False
|
||||||
|
|
||||||
[testenv:linters]
|
[testenv:linters]
|
||||||
|
whitelist_externals =
|
||||||
|
bash
|
||||||
commands =
|
commands =
|
||||||
{toxinidir}/tools/run-check-yaml-syntax.sh
|
{toxinidir}/tools/yamllint.sh
|
||||||
# bashate check
|
# bashate check
|
||||||
bash -c "find {toxinidir} -type f -name '*.sh' -not -path '*/.tox/*' -print0 | xargs -0 bashate -v -iE006"
|
bash -c "find {toxinidir} -type f -name '*.sh' -not -path '*/.tox/*' -print0 | xargs -0 bashate -v -iE006"
|
||||||
|
|
||||||
|
|
|
@ -161,4 +161,3 @@ projects:
|
||||||
periodic:
|
periodic:
|
||||||
- 'mcp-build-images-build-number'
|
- 'mcp-build-images-build-number'
|
||||||
- 'mcp-clean-docker-registry'
|
- 'mcp-clean-docker-registry'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue