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