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

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

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

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

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

- job-group:
    name: 'verify-voltha-openonu-adapter-go-jobs-master'
    jobs:
      - 'voltha-patch-test':
          pipeline-script: 'voltha/master/bbsim-tests.groovy'
          extraHelmFlags: '--set global.image_tag=master --set onos-classic.image.tag=master'

- job-group:
    name: 'publish-voltha-openonu-adapter-go-jobs'
    jobs:
      - 'docker-publish':
          build-timeout: 30
          docker-repo: 'voltha'
          dependency-jobs: 'version-tag'
