blob: 589773fb6c2200609ed602c602cbd668b5da5e11 [file] [log] [blame]
Andy Bavier9a80d152018-09-26 16:16:03 -07001---
2- project:
3 name: siab-e2e-att
4 project: '{name}'
5 build-node: 'qct-pod4-node2'
Andy Bavier9a80d152018-09-26 16:16:03 -07006 branch: 'master'
Andy Bavier1ff53c32018-09-28 13:12:56 -07007 refspec: 'refs/heads/master'
Andy Bavierd830d352018-10-01 11:38:23 -07008 failure-email-address: 'andy@opennetworking.org'
Andy Bavier9a80d152018-09-26 16:16:03 -07009 timed-trigger: '{every-four-hours}'
10 jobs:
Andy Bavier4e47ca62018-09-28 08:54:19 -070011 - 'siab-e2e-att'
Andy Bavierd4160c52018-09-27 15:18:27 -070012
Andy Bavier9a80d152018-09-26 16:16:03 -070013- 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 Bavier4e47ca62018-09-28 08:54:19 -070033 - cord-infra-gerrit-scm:
34 git-url: '{gerrit-server-url}/automation-tools'
Zack Williams7b318a02018-09-27 16:23:17 -070035 refspec: '{refspec}'
Andy Bavier4e47ca62018-09-28 08:54:19 -070036 branch: '{branch}'
37 submodule-recursive: 'false'
38 choosing-strategy: default
Zack Williams7b318a02018-09-27 16:23:17 -070039 jenkins-ssh-credential: '{jenkins-ssh-credential}'
Andy Bavier4e47ca62018-09-28 08:54:19 -070040 basedir: 'cord/automation-tools'
Andy Bavier9a80d152018-09-26 16:16:03 -070041
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 Bavier1ff53c32018-09-28 13:12:56 -070052 [ -e /usr/bin/kubeadm ] && make reset-kubeadm
Andy Bavier9a80d152018-09-26 16:16:03 -070053 make -j2
54 make run-tests
Andy Bavierd830d352018-10-01 11:38:23 -070055
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