---
# verification jobs for 'voltha-openolt-adapter' repo

- project:
    name: voltha-openolt-adapter
    project: '{name}'

    jobs:
      - 'verify-voltha-openolt-adapter-jobs':
          branch-regexp: '{all-branches-regexp}'
      - 'verify-voltha-openolt-adapter-jobs-master':
          branch-regexp: '^master$'
      - 'verify-voltha-openolt-adapter-jobs-voltha-2.14':
          name-extension: '-voltha-2.14'
          override-branch: 'voltha-2.14'
          branch-regexp: '^voltha-2.14$'
      - 'publish-voltha-openolt-adapter-jobs':
          branch-regexp: '{all-branches-regexp}'

- job-group:
    name: 'verify-voltha-openolt-adapter-jobs'
    jobs:
      - 'verify-licensed'
      - 'make-unit-test':
          dest-gopath: "github.com/opencord"
          name-extension: "-lint"
          unit-test-targets: 'lint sca'
          unit-test-keep-going: 'false'
          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: 'false'
          junit-allow-empty-results: true
          build-node: 'ubuntu18.04-basebuild-2c-4g'

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

- job-group:
    name: 'verify-voltha-openolt-adapter-jobs-voltha-2.14'
    jobs:
      - 'voltha-patch-test':
          pipeline-script: 'voltha/bbsim-tests.groovy'
          pipeline-branch: 'master'

- job-group:
    name: 'publish-voltha-openolt-adapter-jobs'
    jobs:
      - 'docker-publish':
          build-timeout: 30
          docker-repo: 'voltha'
          dependency-jobs: 'version-tag_wildcard'
          extraEnvironmentVars: BUILD_PROFILED=true

# [EOF]
