aboutsummaryrefslogtreecommitdiff
path: root/jdk10-jtreg-test-publish-results.yaml
blob: cd0c732967576b68db74b4a135ccbdb6f5c8cea3 (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
- job:
    name: jdk10-jtreg-test-publish-results
    project-type: freestyle
    defaults: global
    description: |
        * Results are published to http://openjdk.linaro.org/jdk10/openjdk-jtreg-nightly-tests/
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
            openjdk-members:
                - job-build
                - job-cancel
        - build-discarder:
            days-to-keep: 30
            num-to-keep: 10
            artifact-num-to-keep: 5
    parameters:
        - string:
            name: PUBLISH_DEST
            default: ''
        - string:
            name: PUBLISH_HOST
            default: ''
        - string:
            name: YEAR
            default: 'default'
        - string:
            name: DAY_OF_YEAR
            default: 'default'
    disabled: true
    node: aarch64-06
    display-name: 'OpenJDK 10 - Publish jtreg results'
    wrappers:
        - timestamps
        - ssh-agent-credentials:
            users:
                - '744cffb4-9ce1-4856-b103-9fdda06dad36'
    builders:
        - copyartifact:
            project: jtreg-build
            filter: 'jtreg-build-4.2.0-SNAPSHOT.tar.xz'
            flatten: true
        - shell: |
            #!/bin/bash

            set -ex

            PERSIST=$HOME/srv/openjdk10
            SCRIPT_DIR=$PERSIST/openjdk-test-scripts
            export JDK_VERSION=10

            (unset PRIVATE_KEY; env | sort  >$WORKSPACE/env.out)
            tree -fd -L 5 $PERSIST | xz >$WORKSPACE/tree.out.xz

            if [ -d $SCRIPT_DIR ]; then
                (cd $SCRIPT_DIR; git pull)
            else
                git clone https://git.linaro.org/leg/openjdk/openjdk-test-scripts.git $SCRIPT_DIR
            fi

            tar xf jtreg-build-4.2.0-SNAPSHOT.tar.xz
            export PATH=${WORKSPACE}/jtreg/bin:$PATH
            which jtdiff
            TOP_DIR=$PERSIST/openjdk-jtreg-nightly-tests bash -x $SCRIPT_DIR/publish $PUBLISH_DEST $NODE_NAME
    publishers:
        - archive:
            artifacts: 'tree.out.xz, env.out'
        - email:
            recipients: 'fathi.boudra@linaro.org stuart.monteith@linaro.org'