blob: b5b193560b9c392b85974fd16a9e0e3c53dd0da2 [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
Kailash5f3a7972018-12-18 08:43:56 -080055 make && 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