aboutsummaryrefslogtreecommitdiff
path: root/llp-test.yaml
blob: 321c29e9c7aa6e2915fa4051fba37494a214bb85 (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
- job:
    name: llp-test
    project-type: freestyle
    defaults: global
    properties:
        - authorization:
            anonymous:
                - job-discover
            linaro:
                - job-read
                - job-extended-read
                - job-build
                - job-cancel
        - build-discarder:
            days-to-keep: 10
            num-to-keep: 10
    disabled: false
    display-name: 'Test job to upload files to LLP'
    node: docker-stretch-amd64
    wrappers:
        - timestamps
    builders:
        - linaro-publish-token
        - shell: |
            #!/bin/bash
            mkdir -p upload
            for n in {1..1000}; do
                dd if=/dev/urandom of=upload/file$( printf %03d "$n" ).bin bs=1 count=$(( RANDOM + 1024 ))
            done
        - shell: |
            # Publish
            wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py
            time python3 ${HOME}/bin/linaro-cp.py \
              --server http://snapshots-staging.ctt.linaro.org
              --api_version 3 \
              --link-latest \
              upload test/ infrastructure/$(date +%M)
    publishers:
        - email:
            recipients: linaro-infrastructure-errors@lists.linaro.org