blob: 042af1a11064a805b37adff1adf94043df892d38 [file] [log] [blame]
Kailash Khalasi3727e312018-05-31 13:10:16 -07001---
2# voltha-gerrit
3
4- project:
5 name: voltha-gerrit
6
7 project-name: '{name}'
8
9 jobs:
10 - 'voltha-gerrit'
11
12
13- job-template:
14 id: 'voltha-gerrit'
15 name: 'voltha-gerrit'
16
17 description: |
18 Created by {id} job-template from ci-management/jjb/voltha-gerrit.yaml
19
20 triggers:
21 - cord-infra-gerrit-trigger-patchset:
22 gerrit-server-name: '{gerrit-server-name}'
23 project-regexp: 'voltha'
24 branch-regexp: '{supported-branches-regexp}'
25 dependency-jobs: ''
26 file-include-regexp: ''
27
28 properties:
29 - cord-infra-properties:
30 build-days-to-keep: '{build-days-to-keep}'
31 artifact-num-to-keep: '{artifact-num-to-keep}'
32
33 wrappers:
34 - lf-infra-wrappers:
35 build-timeout: 20
36 jenkins-ssh-credential: '{jenkins-ssh-credential}'
37
38 scm:
39 - lf-infra-gerrit-scm:
40 git-url: '$GIT_URL/$GERRIT_PROJECT'
41 refspec: '$GERRIT_REFSPEC'
42 branch: '$GERRIT_BRANCH'
43 submodule-recursive: 'false'
44 choosing-strategy: gerrit
45 jenkins-ssh-credential: '{jenkins-ssh-credential}'
46
47 node: 'ubuntu16.04-basebuild-1c-2g'
48 project-type: freestyle
49 concurrent: true
50
51 builders:
52 - shell: |
53 #/usr/bin/env bash
54
55 # download changeset
56 mkdir cord && cd cord/
57 repo init -u https://gerrit.opencord.org/manifest -b $GERRIT_BRANCH
58 repo sync
59 repo download $GERRIT_PROJECT $GERRIT_CHANGE_NUMBER/$GERRIT_PATCHSET_NUMBER
60
61 cd incubator/voltha
62 rm -rf venv-linux
63 . ./env.sh
64 make utest-with-coverage