---
# CORD helm chart publishing tasks

- project:
    name: voltha-atest-provisioning

    project-name: 'voltha'

    jobs:
      - 'voltha-atest-provisioning'

- job-template:
    id: voltha-atest-provisioning
    name: 'voltha-atest-provisioning'
    description: |
      Created by {id} job-template from ci-management/jjb/voltha-atest-provisioning.yaml
      Voltha automated tests run per commit. Tests reside in voltha repo

    triggers:
      - cord-infra-gerrit-trigger-patchset:
          gerrit-server-name: '{gerrit-server-name}'
          project-regexp: 'voltha'
          branch-regexp: '{supported-branches-regexp}'
          dependency-jobs: '{dependency-jobs}'
          file-include-regexp: '{all-files-regexp}'

    properties:
      - cord-infra-properties:
          build-days-to-keep: '{build-days-to-keep}'
          artifact-num-to-keep: '{artifact-num-to-keep}'

    wrappers:
      - lf-infra-wrappers:
          build-timeout: '{build-timeout}'
          jenkins-ssh-credential: '{jenkins-ssh-credential}'

    parameters:
      - string:
          name: executorNode
          default: 'qct-pod3-voltha-testing'
          description: 'Name of the Jenkins node to run the job on'

      - string:
          name: manifestUrl
          default: '{gerrit-server-url}/{cord-repo-manifest}'
          description: 'URL to the repo manifest'

      - string:
          name: manifestBranch
          default: 'master'
          description: 'Name of the repo branch to use'

      - string:
            name: gerritChangeNumber
            default: '$GERRIT_CHANGE_NUMBER'
            description: 'Changeset number in Gerrit'

      - string:
            name: gerritPatchsetNumber
            default: '$GERRIT_PATCHSET_NUMBER'
            description: 'PatchSet number in Gerrit'


    project-type: pipeline
    concurrent: false

    dsl: !include-raw-escape: pipeline/voltha-atest-provisioning.groovy
