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

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

    jobs:
      - 'verify-voltha-go-controller-jobs':
          branch-regexp: '{all-branches-regexp}'
      - 'publish-voltha-go-controller-jobs':
          branch-regexp: '{all-branches-regexp}'

- job-group:
    name: 'verify-voltha-go-controller-jobs'
    jobs:
      - 'verify-licensed'
      - 'make-unit-test':
          build-node: 'ubuntu18.04-basebuild-1c-2g'
          dest-gopath: "github.com/opencord"
          unit-test-targets: 'lint sca test'
          unit-test-keep-going: 'false'
          # NOTE needed until we have some unit tests in place
          junit-allow-empty-results: true

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

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

- job-group:
    name: 'publish-voltha-go-controller-jobs'
    jobs:
      - 'docker-publish':
          maintainers: "releng+voltha-build@linuxfoundation.org"
          docker-repo: 'voltha'
          dependency-jobs: 'version-tag_wildcard'

# [EOF]
