---
# verification jobs for 'voltctl' repo

- project:
    name: voltctl
    project: '{name}'

    dest-gopath: "github.com/opencord"

    jobs:
      - 'verify-voltctl-jobs':
          branch-regexp: '{supported-branches-regexp}'
      - 'post-submit-voltctl-jobs':
          branch-regexp: '{supported-branches-regexp}'

- job-group:
    name: 'verify-voltctl-jobs'
    jobs:
      - 'verify-licensed'
      - 'tag-collision-reject':
          dependency-jobs: 'verify_voltctl_licensed'
      - 'make-unit-test':
          build-node: 'ubuntu18.04-basebuild-2c-4g'
          unit-test-targets: 'lint sca test'
          unit-test-keep-going: 'true'
          dependency-jobs: 'verify_voltctl_tag-collision'
      - '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: 'post-submit-voltctl-jobs'
    jobs:
      - 'github-release':
          build-node: 'ubuntu18.04-basebuild-2c-4g'
          dependency-jobs: 'version-tag'
          github-organization: 'opencord'
          artifact-glob: 'release/*'
