aboutsummaryrefslogtreecommitdiff
path: root/qa-check-web-links.yaml
blob: c30a7caf744502a3c13e9f26fecc093efb3425a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
- job:
    name: qa-check-web-links
    project-type: freestyle
    defaults: global
    logrotate:
        daysToKeep: 60
        numToKeep: 60
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
            linaro:
                - job-read
                - job-extended-read
                - job-build
                - job-cancel
    disabled: false
    node: docker-jessie-amd64
    display-name: 'QA - Check web links'
    scm:
        - git:
            url: https://git.linaro.org/qa/checklink.git
            refspec: +refs/heads/master:refs/remotes/origin/master
            name: origin
            branches:
                - refs/heads/master
            skip-tag: true
            shallow-clone: true
            wipe-workspace: false
    wrappers:
        - timestamps
    builders:
        - shell: |
            #!/bin/sh

            set -e

            sudo apt-get update
            sudo apt-get install -y --no-install-recommends linkchecker

            URLs=$(cat page_checklist.txt | tr '\n' ' ')
            echo "Checking ${URLs}"
            python check-link.py -f linaro-release-page.cfg ${URLs}
    publishers:
        - archive:
            artifacts: '*.txt'
        - email-ext:
            recipients: 'qa-team@linaro.org'
            attachments: 'link_check_result.txt'