blob: 0ff1f830ff84aad3e1b6b2f4508f64cf091919c6 [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 Bavierf0abcdd2018-10-08 09:36:09 -07009 timed-trigger: '{every-hour}'
Kailash Khalasi591adc02018-10-19 11:24:53 -070010 build-timeout: 60
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}'
Andy Bavierf0abcdd2018-10-08 09:36:09 -070032 - workspace-cleanup
Andy Bavier9a80d152018-09-26 16:16:03 -070033
34 scm:
Andy Bavier4e47ca62018-09-28 08:54:19 -070035 - cord-infra-gerrit-scm:
36 git-url: '{gerrit-server-url}/automation-tools'
Zack Williams7b318a02018-09-27 16:23:17 -070037 refspec: '{refspec}'
Andy Bavier4e47ca62018-09-28 08:54:19 -070038 branch: '{branch}'
39 submodule-recursive: 'false'
Zack Williamscd3eb202018-10-02 14:33:13 -070040 choosing-strategy: 'gerrit'
Zack Williams7b318a02018-09-27 16:23:17 -070041 jenkins-ssh-credential: '{jenkins-ssh-credential}'
Andy Bavier4e47ca62018-09-28 08:54:19 -070042 basedir: 'cord/automation-tools'
Andy Bavier9a80d152018-09-26 16:16:03 -070043
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 Bavier1ff53c32018-09-28 13:12:56 -070054 [ -e /usr/bin/kubeadm ] && make reset-kubeadm
Andy Bavierf0abcdd2018-10-08 09:36:09 -070055 make /tmp/milestones/voltha-running && make -j2
Andy Bavier9a80d152018-09-26 16:16:03 -070056 make run-tests
Andy Bavierd830d352018-10-01 11:38:23 -070057
58 publishers:
59 - email:
60 recipients: '{failure-email-address}'
61 - postbuildscript:
62 builders:
63 - role: SLAVE
64 build-on:
65 - SUCCESS
66 - UNSTABLE
67 - NOT_BUILT
68 - ABORTED
69 - FAILURE
70 build-steps:
71 - shell: sudo rm -rf /tmp/logs/*
72 - role: SLAVE
73 build-on:
74 - FAILURE
75 build-steps:
76 - shell: |
77 #!/usr/bin/env bash
78
79 mkdir -p /tmp/logs
80 sudo cp /var/log/containers/*.log /tmp/logs
81 sudo chown cord /tmp/logs/*.log
82 - archive:
83 artifacts: '/tmp/logs/*.log'
84 allow-empty: true