blob: 6a902ec424e9f18eab7b5da6ae415e8cc8de9ed9 [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}'
Andy Bavier0e5f7452018-10-01 15:21:55 -070010 build-timeout: 20
Andy Bavier9a80d152018-09-26 16:16:03 -070011 jobs:
Andy Bavier4e47ca62018-09-28 08:54:19 -070012 - 'siab-e2e-att'
Andy Bavierd4160c52018-09-27 15:18:27 -070013
Andy Bavier9a80d152018-09-26 16:16:03 -070014- 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}'
32
33 scm:
Andy Bavier4e47ca62018-09-28 08:54:19 -070034 - cord-infra-gerrit-scm:
35 git-url: '{gerrit-server-url}/automation-tools'
Zack Williams7b318a02018-09-27 16:23:17 -070036 refspec: '{refspec}'
Andy Bavier4e47ca62018-09-28 08:54:19 -070037 branch: '{branch}'
38 submodule-recursive: 'false'
Zack Williamscd3eb202018-10-02 14:33:13 -070039 choosing-strategy: 'gerrit'
Zack Williams7b318a02018-09-27 16:23:17 -070040 jenkins-ssh-credential: '{jenkins-ssh-credential}'
Andy Bavier4e47ca62018-09-28 08:54:19 -070041 basedir: 'cord/automation-tools'
Andy Bavier9a80d152018-09-26 16:16:03 -070042
43 node: '{build-node}'
44 project-type: freestyle
45 concurrent: false
46
47 builders:
48 - shell: |
49 #!/usr/bin/env bash
50 set -eu -o pipefail
51
52 cd cord/automation-tools/seba-in-a-box
Andy Bavier1ff53c32018-09-28 13:12:56 -070053 [ -e /usr/bin/kubeadm ] && make reset-kubeadm
Andy Bavier9a80d152018-09-26 16:16:03 -070054 make -j2
55 make run-tests
Andy Bavierd830d352018-10-01 11:38:23 -070056
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