Loading .gitignore +1 −1 Original line number Diff line number Diff line Loading @@ -2,4 +2,4 @@ site/ docs/jobs/**/*.md docs/images/jobs **/.DS_Store .idea No newline at end of file .gitlab-ci.yml +12 −3 Original line number Diff line number Diff line Loading @@ -5,7 +5,8 @@ stages: - deploy include: - remote: 'https://jobs.r2devops.io/links_checker.yml?scope=0.yml' # - remote: 'https://jobs.r2devops.io/links_checker.yml?scope=0.yml' - remote: 'https://gitlab.com/r2devops/hub/-/raw/293-pipeline-hub-fix-link_checker/jobs/links_checker/links_checker.yml' - remote: 'https://jobs.r2devops.io/1.4.0/mkdocs.yml?scope=0.yml' - remote: 'https://jobs.r2devops.io/0.3.0/pages.yml?scope=0.yml' Loading Loading @@ -145,6 +146,14 @@ job_image_scan: expire_in: 30 days when: always links_checker: variables: LICHE_EXCLUDE: "^[^http]" FAIL_ON_BROKEN: "true" allow_failure: true after_script: - echo ${LICHE_OPTIONS} - echo ${LICHE_EXCLUDE} # See https://docs.gitlab.com/ee/api/labels.html job_labels: Loading jobs/links_checker/links_checker.yml +6 −2 Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ links_checker: - mkdir /liche && cd /liche - apk add --update nodejs npm curl && npm install junit-report-builder - add_option() { export LICHE_OPTIONS="${LICHE_OPTIONS} ${1}"; } - add_option() { echo "ADD OPTION ${1}"; export LICHE_OPTIONS="${LICHE_OPTIONS} ${1}"; } - | generate_report() { cat ${CI_PROJECT_DIR}/linkchecker_logs Loading Loading @@ -63,7 +63,11 @@ links_checker: add_option "${CI_PROJECT_DIR}/${i}" done fi - if [ ! -z ${LICHE_EXCLUDE} ]; then add_option "-x \"${LICHE_EXCLUDE}\""; fi - | if [ ! -z ${LICHE_EXCLUDE} ]; then add_option "-x ${LICHE_EXCLUDE}"; echo "Added options" fi - if [ ${LICHE_PRINT_OK} = "true" ]; then add_option "-v"; fi - if [ ${LICHE_RECURSIVE} = "true" ]; then add_option "-r"; fi Loading Loading
.gitignore +1 −1 Original line number Diff line number Diff line Loading @@ -2,4 +2,4 @@ site/ docs/jobs/**/*.md docs/images/jobs **/.DS_Store .idea No newline at end of file
.gitlab-ci.yml +12 −3 Original line number Diff line number Diff line Loading @@ -5,7 +5,8 @@ stages: - deploy include: - remote: 'https://jobs.r2devops.io/links_checker.yml?scope=0.yml' # - remote: 'https://jobs.r2devops.io/links_checker.yml?scope=0.yml' - remote: 'https://gitlab.com/r2devops/hub/-/raw/293-pipeline-hub-fix-link_checker/jobs/links_checker/links_checker.yml' - remote: 'https://jobs.r2devops.io/1.4.0/mkdocs.yml?scope=0.yml' - remote: 'https://jobs.r2devops.io/0.3.0/pages.yml?scope=0.yml' Loading Loading @@ -145,6 +146,14 @@ job_image_scan: expire_in: 30 days when: always links_checker: variables: LICHE_EXCLUDE: "^[^http]" FAIL_ON_BROKEN: "true" allow_failure: true after_script: - echo ${LICHE_OPTIONS} - echo ${LICHE_EXCLUDE} # See https://docs.gitlab.com/ee/api/labels.html job_labels: Loading
jobs/links_checker/links_checker.yml +6 −2 Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ links_checker: - mkdir /liche && cd /liche - apk add --update nodejs npm curl && npm install junit-report-builder - add_option() { export LICHE_OPTIONS="${LICHE_OPTIONS} ${1}"; } - add_option() { echo "ADD OPTION ${1}"; export LICHE_OPTIONS="${LICHE_OPTIONS} ${1}"; } - | generate_report() { cat ${CI_PROJECT_DIR}/linkchecker_logs Loading Loading @@ -63,7 +63,11 @@ links_checker: add_option "${CI_PROJECT_DIR}/${i}" done fi - if [ ! -z ${LICHE_EXCLUDE} ]; then add_option "-x \"${LICHE_EXCLUDE}\""; fi - | if [ ! -z ${LICHE_EXCLUDE} ]; then add_option "-x ${LICHE_EXCLUDE}"; echo "Added options" fi - if [ ${LICHE_PRINT_OK} = "true" ]; then add_option "-v"; fi - if [ ${LICHE_RECURSIVE} = "true" ]; then add_option "-r"; fi Loading