---
# 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.12':
          name-extension: '-voltha-2.12'
          override-branch: 'voltha-2.12'
          branch-regexp: '^voltha-2.12$'
      - 'verify-voltha-openolt-adapter-jobs-voltha-2.11':
          name-extension: '-voltha-2.11'
          override-branch: 'voltha-2.11'
          branch-regexp: '^voltha-2.11$'
#      - 'verify-voltha-openolt-adapter-jobs-voltha-2.8':
#          name-extension: '-voltha-2.8'
#          override-branch: 'voltha-2.8'
#          branch-regexp: '^voltha-2.8$'
      - 'publish-voltha-openolt-adapter-jobs':
          branch-regexp: '{all-branches-regexp}'

- job-group:
    name: 'verify-voltha-openolt-adapter-jobs'
    jobs:
      - 'verify-licensed'
      - 'tag-collision-reject':
          dependency-jobs: 'verify_voltha-openolt-adapter_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.12'
    jobs:
      - 'voltha-patch-test':
          pipeline-script: 'voltha/voltha-2.12/bbsim-tests.groovy'

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

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

- 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]
