---
# verification jobs for 'voltha-go' repo

- project:
    name: voltha-go
    project: '{name}'

    jobs:
      - 'verify-voltha-go-jobs':
          branch-regexp: '{all-branches-regexp}'
      - 'verify-voltha-go-jobs-voltha-2.8':
          name-extension: '-voltha-2.8'
          override-branch: 'voltha-2.8'
          branch-regexp: '^voltha-2.8$'
      - 'verify-voltha-go-jobs-master':
          branch-regexp: '^master$'
      - 'publish-voltha-go-jobs':
          branch-regexp: '{all-branches-regexp}'

- job-group:
    name: 'verify-voltha-go-jobs'
    jobs:
      - 'verify-licensed'
      - 'tag-collision-reject':
          dependency-jobs: 'verify_voltha-go_licensed'
      - 'make-unit-test':
          build-node: 'ubuntu18.04-basebuild-4c-8g'
          build-timeout: 20
          dest-gopath: "github.com/opencord"
          name-extension: "-lint"
          unit-test-targets: 'lint sca'
          unit-test-keep-going: 'true'
          junit-allow-empty-results: true
      - 'make-unit-test':
          build-node: 'ubuntu18.04-basebuild-2c-4g'
          dest-gopath: "github.com/opencord"
          name-extension: "-tests"
          unit-test-targets: 'test'
          unit-test-keep-going: 'true'

- job-group:
    name: 'verify-voltha-go-jobs-voltha-2.8'
    jobs:
      - 'voltha-patch-test':
          pipeline-script: 'voltha/voltha-2.8/bbsim-tests.groovy'

- job-group:
    name: 'verify-voltha-go-jobs-master'
    jobs:
      - 'voltha-patch-test':
          extraHelmFlags: '--set global.image_tag=master --set onos-classic.image.tag=master'

- job-group:
    name: 'publish-voltha-go-jobs'
    jobs:
      - 'docker-publish':
          build-timeout: 30
          docker-repo: 'voltha'
          dependency-jobs: 'version-tag'
          extraEnvironmentVars: BUILD_PROFILED=true BUILD_RACE=true
