Andy Bavier | 9a80d15 | 2018-09-26 16:16:03 -0700 | [diff] [blame] | 1 | --- |
| 2 | - project: |
| 3 | name: siab-e2e-att |
| 4 | project: '{name}' |
| 5 | build-node: 'qct-pod4-node2' |
Andy Bavier | 9a80d15 | 2018-09-26 16:16:03 -0700 | [diff] [blame] | 6 | branch: 'master' |
Andy Bavier | 1ff53c3 | 2018-09-28 13:12:56 -0700 | [diff] [blame] | 7 | refspec: 'refs/heads/master' |
Andy Bavier | d830d35 | 2018-10-01 11:38:23 -0700 | [diff] [blame^] | 8 | failure-email-address: 'andy@opennetworking.org' |
Andy Bavier | 9a80d15 | 2018-09-26 16:16:03 -0700 | [diff] [blame] | 9 | timed-trigger: '{every-four-hours}' |
| 10 | jobs: |
Andy Bavier | 4e47ca6 | 2018-09-28 08:54:19 -0700 | [diff] [blame] | 11 | - 'siab-e2e-att' |
Andy Bavier | d4160c5 | 2018-09-27 15:18:27 -0700 | [diff] [blame] | 12 | |
Andy Bavier | 9a80d15 | 2018-09-26 16:16:03 -0700 | [diff] [blame] | 13 | - job-template: |
| 14 | id: 'siab-e2e-att' |
| 15 | name: 'verify_automation-tools_{project}' |
| 16 | description: | |
| 17 | Created by {id} job-template from ci-management/jjb/siab-e2e.yaml |
| 18 | |
| 19 | triggers: |
| 20 | - timed: '{timed-trigger}' |
| 21 | |
| 22 | properties: |
| 23 | - cord-infra-properties: |
| 24 | build-days-to-keep: '{build-days-to-keep}' |
| 25 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 26 | |
| 27 | wrappers: |
| 28 | - lf-infra-wrappers: |
| 29 | build-timeout: '{build-timeout}' |
| 30 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 31 | |
| 32 | scm: |
Andy Bavier | 4e47ca6 | 2018-09-28 08:54:19 -0700 | [diff] [blame] | 33 | - cord-infra-gerrit-scm: |
| 34 | git-url: '{gerrit-server-url}/automation-tools' |
Zack Williams | 7b318a0 | 2018-09-27 16:23:17 -0700 | [diff] [blame] | 35 | refspec: '{refspec}' |
Andy Bavier | 4e47ca6 | 2018-09-28 08:54:19 -0700 | [diff] [blame] | 36 | branch: '{branch}' |
| 37 | submodule-recursive: 'false' |
| 38 | choosing-strategy: default |
Zack Williams | 7b318a0 | 2018-09-27 16:23:17 -0700 | [diff] [blame] | 39 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
Andy Bavier | 4e47ca6 | 2018-09-28 08:54:19 -0700 | [diff] [blame] | 40 | basedir: 'cord/automation-tools' |
Andy Bavier | 9a80d15 | 2018-09-26 16:16:03 -0700 | [diff] [blame] | 41 | |
| 42 | node: '{build-node}' |
| 43 | project-type: freestyle |
| 44 | concurrent: false |
| 45 | |
| 46 | builders: |
| 47 | - shell: | |
| 48 | #!/usr/bin/env bash |
| 49 | set -eu -o pipefail |
| 50 | |
| 51 | cd cord/automation-tools/seba-in-a-box |
Andy Bavier | 1ff53c3 | 2018-09-28 13:12:56 -0700 | [diff] [blame] | 52 | [ -e /usr/bin/kubeadm ] && make reset-kubeadm |
Andy Bavier | 9a80d15 | 2018-09-26 16:16:03 -0700 | [diff] [blame] | 53 | make -j2 |
| 54 | make run-tests |
Andy Bavier | d830d35 | 2018-10-01 11:38:23 -0700 | [diff] [blame^] | 55 | |
| 56 | publishers: |
| 57 | - email: |
| 58 | recipients: '{failure-email-address}' |
| 59 | - postbuildscript: |
| 60 | builders: |
| 61 | - role: SLAVE |
| 62 | build-on: |
| 63 | - SUCCESS |
| 64 | - UNSTABLE |
| 65 | - NOT_BUILT |
| 66 | - ABORTED |
| 67 | - FAILURE |
| 68 | build-steps: |
| 69 | - shell: sudo rm -rf /tmp/logs/* |
| 70 | - role: SLAVE |
| 71 | build-on: |
| 72 | - FAILURE |
| 73 | build-steps: |
| 74 | - shell: | |
| 75 | #!/usr/bin/env bash |
| 76 | |
| 77 | mkdir -p /tmp/logs |
| 78 | sudo cp /var/log/containers/*.log /tmp/logs |
| 79 | sudo chown cord /tmp/logs/*.log |
| 80 | - archive: |
| 81 | artifacts: '/tmp/logs/*.log' |
| 82 | allow-empty: true |