haskell-package-plan.yaml 3.29 KB
Newer Older
1
- defaults:
2
    name: haskell-package-plan
3 4 5
    project-type: freestyle
    properties:
      - sidebar:
6
          url: https://jenkins.debian.net/userContent/about.html
7
          text: About jenkins.debian.net
8 9
          icon: /userContent/images/debian-swirl-24x24.png
      - sidebar:
10
          url: https://jenkins.debian.net/view/haskell/
11 12 13
          text: Haskell packages metadata consistency
          icon: /userContent/images/debian-jenkins-24x24.png
      - sidebar:
14
          url: http://www.profitbricks.co.uk
15 16 17 18 19 20
          text: Sponsored by Profitbricks
          icon: /userContent/images/profitbricks-24x24.png
    description: '{my_description}{do_not_edit}'
    logrotate:
      daysToKeep: 365
      numToKeep: 365
21 22
      artifactDaysToKeep: -1
      artifactNumToKeep: -1
23
    builders:
24
      - shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh {my_distro} "apt-get --no-install-recommends -y install {my_pkgs}; {my_shell}"'
25
    publishers:
26 27 28 29
      - logparser:
          parse-rules: '/srv/jenkins/logparse/haskell-package-plan.rules'
          unstable-on-warning: 'false'
          fail-on-error: 'false'
30 31
      - email:
          recipients: '{my_recipients}'
32
      - gitlab-notifier: {}
33
      - plot:
34 35
          - title: Stats
            yaxis: Packages
36
            group: PlotGroup
Joachim Breitner's avatar
Joachim Breitner committed
37
            csv-file-name: package-plan-stats.csv
38 39 40
            series:
                - file: stats.csv
                  format: csv
41 42
                  # inclusion-flag: exclude-by-string
                  # exclude: total
43 44 45 46 47 48 49 50 51
          #- title: Totals
          #  yaxis: Packages
          #  group: PlotGroup
          #  style: area
          #  series:
          #      - file: stats.csv
          #        format: csv
          #        # inclusion-flag: include-by-string
          #        # exclude: total
52 53 54 55 56
      - naginator:
          progressive-delay-increment: 5
          progressive-delay-maximum: 15
          max-failed-builds: 5
          regular-expression: 'Caused by: hudson.plugins.git.GitException: Command "git fetch'
57 58
    scm:
      - git:
59
          url: 'https://salsa.debian.org/haskell-team/package-plan.git'
60 61
          branches:
            - master
62
    node: 'profitbricks10'
63 64

- job-template:
65
    defaults: haskell-package-plan
66
    name: '{name}'
67
    triggers:
68 69
      - gitlab:
          secret-token: '{{AQAAABAAAAAw9eKwPNjgxpBaIGFw7ENyGiFn/g86pUHU1Bj2FhgMZ/BNIUJFbUUx7Tp2JubWJVEZl4EufkudMPewFSM6rZk9Kg==}}'
Joachim Breitner's avatar
Joachim Breitner committed
70
      - timed: '0 16 * * *'    # every day at 16:00 UTC
71 72

- project:
73
    name: haskell-package-plan
74
    do_not_edit: '<br><br>Job configuration source is <a href="https://salsa.debian.org/qa/jenkins.debian.net/blob/master/job-cfg/haskell-package-plan.yaml">haskell-package-plan.yaml</a>.'
75
    jobs:
76
        - '{name}':
77
            my_distro: 'sid'
78
            my_pkgs: 'cabal-install ghc dctrl-tools patchutils libtext-patch-perl libfile-slurp-perl  libipc-run-perl liblist-moreutils-perl libdpkg-perl'
79
            my_shell: 'export http_proxy=http://localhost:3128; git clone https://salsa.debian.org/haskell-team/package-plan.git ; cd package-plan ; cabal update ; ./test-packages.pl'      # the job runs on pb10 and that node runs a proxy
80
            my_description: 'Haskell Metadata sanity checks'
81
            my_recipients: 'jenkins+debian-haskell qa-jenkins-scm@lists.alioth.debian.org pkg-haskell-maintainers@lists.alioth.debian.org'