Commit 55a7f401 authored by Alexandre Burgoni's avatar Alexandre Burgoni
Browse files

Fix: links_checker job

Update links_checker configuration

Update links_checker configuration

Add links_checker exclude

Add links_checker exclude

Add links_checker exclude

Add links_checker exclude

Fix link_checker job

Try fix links_checker
parent 833973fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2,4 +2,4 @@ site/
docs/jobs/**/*.md
docs/images/jobs
**/.DS_Store
.idea
 No newline at end of file
+12 −3
Original line number Diff line number Diff line
@@ -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'

@@ -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:
+6 −2
Original line number Diff line number Diff line
@@ -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
@@ -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