aboutsummaryrefslogtreecommitdiff
path: root/tcwg-benchmark-compare.yaml
blob: 07f9143b934a5787f6947d40432b4cb2efb33790 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
- job:
    name: tcwg-benchmark-compare
    project-type: freestyle
    defaults: global
    properties:
        - authorization:
            linaro:
                - job-read
                - job-extended-read
                - job-build
                - job-cancel
        - build-discarder:
            days-to-keep: 30
            num-to-keep: 100
    parameters:
        - string:
            name: resultsref
            default: <hw_type>/tcwg-benchmark-<build_num>
            description: 'Rsync-friendly for reference results. Use the results_id value of the reference build.'
        - string:
            name: resultseval
            default: <hw_type>/tcwg-benchmark-<build_num>
            description: 'Rsync-friendly for results to compare to reference.  Use the results_id value of the build.'
        - bool:
            name: peak
            default: false
            description: 'Use peak performance instead of median'
        - string:
            name: scripts_branch
            default: master
            description: 'Jenkins-scripts branch to use'
        - string:
            name: bmk_branch
            default: master
            description: 'Bmk-scripts branch to use'
    disabled: false
    node: tcwg-bmk-dev-01
    concurrent: true
    display-name: 'TCWG BBB Benchmark Compare'
    scm:
        - git:
            url: https://git-us.linaro.org/toolchain/jenkins-scripts.git
            refspec: +refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*
            branches:
                - ${scripts_branch}
            skip-tag: true
            shallow-clone: true
            wipe-workspace: false
            clean:
                before: true
        - git:
            url: https://git-us.linaro.org/toolchain/bmk-scripts.git
            refspec: +refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*
            branches:
                - ${bmk_branch}
            basedir: bmk-scripts
            skip-tag: true
            shallow-clone: true
            wipe-workspace: false
            clean:
                before: true
    wrappers:
        - timeout:
            timeout: 600
        - timestamps
        - ssh-agent-credentials:
            users:
                - 'tcwg-benchmark'
    builders:
      - shell: |
          #!/bin/bash
          set -e -u -o pipefail
          refboard=$(dirname ${resultsref})
          evalboard=$(dirname ${resultseval})
          refnumber=$(basename ${resultsref} | sed 's/tcwg-benchmark-//')
          evalnumber=$(basename ${resultseval} | sed 's/tcwg-benchmark-//')
          peakstr=""
          $peak && peakstr=-peak
          echo "#${BUILD_NUMBER}-${refboard}-${refnumber}-${evalboard}-${evalnumber}${peakstr}" > ${WORKSPACE}/version.txt
      - build-name-setter:
          name: 'version.txt'
          file: true
      - shell: |
          #!/bin/bash

          set -ex
          exec ./tcwg-benchmark-results-compare.sh
    publishers:
        - archive:
            artifacts: 'artifacts/*'
            latest-only: false