From: Fatih Degirmenci Date: Thu, 12 Mar 2020 09:21:37 +0000 (+0000) Subject: engine: Add docs verify job X-Git-Url: https://gerrit.nordix.org/gitweb?a=commitdiff_plain;h=072f94dfae775c56c5289969a908d0c29203af69;p=infra%2Fcicd.git engine: Add docs verify job Change-Id: I41ce3132ead4fe98cf3b8b98ff05fcbd17982eec --- diff --git a/jjb/engine/engine-verify-tox.yaml b/jjb/engine/engine-verify-tox.yaml index 4ed2c3f51..f105de43f 100644 --- a/jjb/engine/engine-verify-tox.yaml +++ b/jjb/engine/engine-verify-tox.yaml @@ -155,7 +155,7 @@ name: docs condition: ALWAYS projects: - - name: 'engine-verify-ansible-lint-{stream}' + - name: 'engine-verify-docs-{stream}' current-parameters: true kill-phase-on: NEVER abort-all-job: false diff --git a/jjb/engine/scripts/engine-verify-tox.sh b/jjb/engine/scripts/engine-verify-tox.sh index b3a64c6ed..0d0870fe8 100755 --- a/jjb/engine/scripts/engine-verify-tox.sh +++ b/jjb/engine/scripts/engine-verify-tox.sh @@ -32,10 +32,11 @@ run_tox() { echo "Info : Preparing to run tox for the repo $GERRIT_PROJECT" - # set defaults - VERBOSITY=${VERBOSITY:-false} + # set and export defaults LINT_TYPE="${LINT_TYPE:-ansible-lint}" - export VERBOSITY LINT_TYPE + REPOS_TO_IGNORE="${REPOS_TO_IGNORE:-none}" + VERBOSITY=${VERBOSITY:-false} + export LINT_TYPE REPOS_TO_IGNORE VERBOSITY # check if the change is for a repo we should ignore if [[ "$REPOS_TO_IGNORE" =~ "$GERRIT_PROJECT" ]]; then