blob: 042af1a11064a805b37adff1adf94043df892d38 [file] [log] [blame]
---
# voltha-gerrit
- project:
name: voltha-gerrit
project-name: '{name}'
jobs:
- 'voltha-gerrit'
- job-template:
id: 'voltha-gerrit'
name: 'voltha-gerrit'
description: |
Created by {id} job-template from ci-management/jjb/voltha-gerrit.yaml
triggers:
- cord-infra-gerrit-trigger-patchset:
gerrit-server-name: '{gerrit-server-name}'
project-regexp: 'voltha'
branch-regexp: '{supported-branches-regexp}'
dependency-jobs: ''
file-include-regexp: ''
properties:
- cord-infra-properties:
build-days-to-keep: '{build-days-to-keep}'
artifact-num-to-keep: '{artifact-num-to-keep}'
wrappers:
- lf-infra-wrappers:
build-timeout: 20
jenkins-ssh-credential: '{jenkins-ssh-credential}'
scm:
- lf-infra-gerrit-scm:
git-url: '$GIT_URL/$GERRIT_PROJECT'
refspec: '$GERRIT_REFSPEC'
branch: '$GERRIT_BRANCH'
submodule-recursive: 'false'
choosing-strategy: gerrit
jenkins-ssh-credential: '{jenkins-ssh-credential}'
node: 'ubuntu16.04-basebuild-1c-2g'
project-type: freestyle
concurrent: true
builders:
- shell: |
#/usr/bin/env bash
# download changeset
mkdir cord && cd cord/
repo init -u https://gerrit.opencord.org/manifest -b $GERRIT_BRANCH
repo sync
repo download $GERRIT_PROJECT $GERRIT_CHANGE_NUMBER/$GERRIT_PATCHSET_NUMBER
cd incubator/voltha
rm -rf venv-linux
. ./env.sh
make utest-with-coverage