---
# POD Build Pipeline Jobs for Voltha Releases
# -----------------------------------------------------------------------
- project:
    name: voltha-release-jobs

    project-name: '{name}'

    build-timeout: '300'

    with-kind: false
    power-switch: false
    power-cycle-olt: false
    work-flow: 'ATT'
    in-band-management: false
    num-of-openonu: '1'
    num-of-onos: '1'
    num-of-atomix: '0'
    reinstall-olt: true
    test-type: ''
    volthaSystemTestsChange: ''
    kindVolthaChange: ''
    cordTesterChange: ''
    oltAdapterAppLabel: 'adapter-open-olt'
    num-of-onus: ''
    num-of-ponports: ''

    jobs:
      # -----------------------------------------------------------------------
      # Berlin pod with olt/onu - master versions timer based job , two OLTs
      - 'build_voltha_pod_release_timer':
          build-node: 'jenkins-worker-01.berlin-lab'
          config-pod: 'berlin-community-pod-1-multi-olt'
          cluster: 'pod-1.berlin-lab.lfbroadband.org'
          disable-job: false
          name-extension: '_DT'
          work-flow: 'DT'
          profile: '1T8GEM'
          num-of-onos: '3'
          num-of-atomix: '3'
          # Update time trigger value while re-enabling the job
          time: ''

      # Berlin POD test job - master versions: uses tech profile on voltha branch
      - 'build_voltha_pod_test':
          timeout: 360
          build-node: 'jenkins-worker-01.berlin-lab'
          config-pod: 'berlin-community-pod-1-multi-olt'
          cluster: 'pod-1.berlin-lab.lfbroadband.org'
          disable-job: false
          release: 'master'
          branch: 'master'
          pipeline-branch: 'master'
          name-extension: '_DT'
          work-flow: 'DT'
          test-repo: 'voltha-system-tests'
          profile: '1T8GEM'
          power-switch: true
          pipeline-script: 'voltha/voltha-dt-physical-functional-tests.groovy'

      # Berlin pod with gpon olt/onu - master 1T8GEM tech profile and timer based job
      - 'build_voltha_pod_release_timer':
          build-node: 'jenkins-worker-01.berlin-lab'
          config-pod: 'berlin-community-pod-1-gpon'
          cluster: 'pod-1.berlin-lab.lfbroadband.org'
          disable-job: false
          name-extension: '_DT'
          work-flow: 'DT'
          profile: '1T8GEM'
          num-of-onos: '3'
          num-of-atomix: '3'
          # Update time trigger value while re-enabling the job
          time: ''

      # Berlin POD test job - master versions: uses 1T8GEM tech profile on voltha branch
      - 'build_voltha_pod_test':
          timeout: 330
          build-node: 'jenkins-worker-01.berlin-lab'
          config-pod: 'berlin-community-pod-1-gpon'
          cluster: 'pod-1.berlin-lab.lfbroadband.org'
          disable-job: false
          name-extension: '_DT'
          work-flow: 'DT'
          release: 'master'
          branch: 'master'
          pipeline-branch: 'master'
          test-repo: 'voltha-system-tests'
          profile: '1T8GEM'
          power-switch: true
          pipeline-script: 'voltha/voltha-dt-physical-functional-tests.groovy'

      # Berlin pod with zyxel gpon olt/onu - master 1T8GEM tech profile and timer based job
      - 'build_voltha_pod_release_timer':
          build-node: 'jenkins-worker-02.berlin-lab'
          config-pod: 'berlin-community-pod-2-gpon-zyxel'
          cluster: 'pod-2.berlin-lab.lfbroadband.org'
          disable-job: false
          name-extension: '_DT'
          work-flow: 'DT'
          release: 'master'
          branch: 'master'
          pipeline-branch: 'master'
          profile: '1T8GEM'
          reinstall-olt: true
          num-of-onos: '3'
          num-of-atomix: '3'
          pipeline-script: 'voltha/physical-build.groovy'
          waitTimerForOltUp: 360
          time: ''

      # Berlin POD test job - zyxel gpon master versions: uses tech profile on voltha branch
      - 'build_voltha_pod_test':
          build-node: 'jenkins-worker-02.berlin-lab'
          config-pod: 'berlin-community-pod-2-gpon-zyxel'
          cluster: 'pod-2.berlin-lab.lfbroadband.org'
          disable-job: false
          release: 'master'
          branch: 'master'
          pipeline-branch: 'master'
          name-extension: '_DT'
          work-flow: 'DT'
          test-repo: 'voltha-system-tests'
          profile: '1T8GEM'
          power-switch: true
          pipeline-script: 'voltha/voltha-dt-physical-functional-tests.groovy'

      # Berlin pod with zyxel xgspon olt/onu - master 1T8GEM tech profile and timer based job
      - 'build_voltha_pod_release_timer':
          build-node: 'jenkins-worker-02.berlin-lab'
          config-pod: 'berlin-community-pod-2-xgspon-zyxel'
          cluster: 'pod-2.berlin-lab.lfbroadband.org'
          disable-job: false
          name-extension: '_DT'
          work-flow: 'DT'
          release: 'master'
          branch: 'master'
          pipeline-branch: 'master'
          reinstall-olt: true
          num-of-onos: '3'
          num-of-atomix: '3'
          pipeline-script: 'voltha/physical-build.groovy'
          waitTimerForOltUp: 360
          profile: '1T8GEM'
          time: ''

      # Berlin POD test job - zyxel xgsgpon master versions: uses tech profile on voltha branch
      - 'build_voltha_pod_test':
          build-node: 'jenkins-worker-02.berlin-lab'
          config-pod: 'berlin-community-pod-2-xgspon-zyxel'
          cluster: 'pod-2.berlin-lab.lfbroadband.org'
          disable-job: false
          release: 'master'
          branch: 'master'
          pipeline-branch: 'master'
          name-extension: '_DT'
          work-flow: 'DT'
          test-repo: 'voltha-system-tests'
          profile: '1T8GEM'
          power-switch: true
          pipeline-script: 'voltha/voltha-dt-physical-functional-tests.groovy'

      # TT workflow on Zyxel XGSPON OLT at Berlin pod - build job
      - 'build_voltha_pod_release_timer':
          build-node: 'jenkins-worker-02.berlin-lab'
          config-pod: 'berlin-community-pod-2-xgspon-zyxel'
          cluster: 'pod-2.berlin-lab.lfbroadband.org'
          disable-job: false
          release: 'master'
          branch: 'master'
          pipeline-branch: 'master'
          name-extension: '_TT'
          work-flow: 'TT'
          profile: 'TP'
          time: ''
          num-of-onos: '3'
          num-of-atomix: '3'

      # TT workflow on Zyxel XGSPON OLT at Berlin pod - test job
      - 'build_voltha_pod_test':
          build-node: 'jenkins-worker-02.berlin-lab'
          config-pod: 'berlin-community-pod-2-xgspon-zyxel'
          cluster: 'pod-2.berlin-lab.lfbroadband.org'
          disable-job: false
          release: 'master'
          branch: 'master'
          pipeline-branch: 'master'
          name-extension: '_TT'
          work-flow: 'TT'
          power-switch: true
          power-cycle-olt: true
          pipeline-script: 'voltha/voltha-tt-physical-functional-tests.groovy'
          test-repo: 'voltha-system-tests'
          profile: 'TP'
          timeout: 360

      # [CORD-3256] TT workflow on XGSPON OLT at Berlin pod - build job
      - 'build_voltha_pod_release_timer':
          build-node: 'jenkins-worker-01.berlin-lab'
          config-pod: 'berlin-community-pod-1-gpon'
          cluster: 'pod-1.berlin-lab.lfbroadband.org'
          disable-job: false
          release: 'master'
          branch: 'master'
          pipeline-branch: 'master'
          name-extension: '_TT'
          work-flow: 'TT'
          profile: 'TP'
          time: ''
          num-of-onos: '3'
          num-of-atomix: '3'

      # [CORD-3256] TT workflow on GPON OLT at Berlin pod - test job
      - 'build_voltha_pod_test':
          build-node: 'jenkins-worker-01.berlin-lab'
          config-pod: 'berlin-community-pod-1-gpon'
          cluster: 'pod-1.berlin-lab.lfbroadband.org'
          disable-job: false
          release: 'master'
          branch: 'master'
          pipeline-branch: 'master'
          name-extension: '_TT'
          work-flow: 'TT'
          power-switch: true
          power-cycle-olt: false
          pipeline-script: 'voltha/voltha-tt-physical-functional-tests.groovy'
          test-repo: 'voltha-system-tests'
          profile: 'TP'
          timeout: 360

      # Berlin pod with adtran gpon olt/onu - master 1T8GEM tech profile and timer based job
      - 'build_voltha_pod_release_timer':
          build-node: 'jenkins-worker-01.berlin-lab'
          config-pod: 'berlin-community-pod-1-gpon-adtran'
          cluster: 'pod-1.berlin-lab.lfbroadband.org'
          disable-job: false
          name-extension: '_DT'
          work-flow: 'DT'
          release: 'master'
          branch: 'master'
          pipeline-branch: 'master'
          profile: '1T8GEM'
          reinstall-olt: false
          extraHelmFlags: "--set adapter_adtran_olt.kv_store_data_prefix='service/voltha/voltha_voltha' --set network.netconfUserSecret='' --set adapter_adtran_olt.topics.core_topic=voltha_voltha_rwcore"
          num-of-onos: '3'
          num-of-atomix: '3'
          pipeline-script: 'voltha/physical-build.groovy'
          openoltAdapterChart: '/home/jenkins/SDX_Voltha_Adtran_Adapter_24.2/helm/voltha-adapter-adtran-olt'
          oltAdapterReleaseName: 'adtran-olt'
          waitTimerForOltUp: 420
          time: ''

      # Berlin POD adtran test job - master versions: uses 1T8GEM tech profile on voltha branch
      - 'build_voltha_pod_test':
          timeout: 390
          build-node: 'jenkins-worker-01.berlin-lab'
          config-pod: 'berlin-community-pod-1-gpon-adtran'
          cluster: 'pod-1.berlin-lab.lfbroadband.org'
          disable-job: false
          release: 'master'
          branch: 'master'
          pipeline-branch: 'master'
          name-extension: '_DT'
          work-flow: 'DT'
          test-repo: 'voltha-system-tests'
          profile: '1T8GEM'
          power-switch: true
          pipeline-script: 'voltha/voltha-dt-physical-functional-tests.groovy'
          oltAdapterAppLabel: 'adapter-adtran-olt'

      # -----------------------------------------------------------------------
      # Berlin pod with adtran gpon olt/onu - 1T8GEM tech profile and timer based job
      - 'verify_voltha_pod_dmi_test':
          build-node: 'jenkins-worker-01.berlin-lab'
          config-pod: 'berlin-community-pod-1-gpon-adtran'
          cluster: 'pod-1.berlin-lab.lfbroadband.org'
          disable-job: true
          name-extension: '_DT'
          work-flow: 'DT'
          release: 'master'
          branch: 'master'
          pipeline-branch: 'master'
          profile: 'Default'
          installVolthaInfra: true
          installVolthaStack: false
          reinstall-olt: false
          restart-olt: false
          extraHelmFlags: " -f /home/community/SDX_Device_Manager_21.4/helm/values-onf.yaml "
          dmiChart: '/home/community/SDX_Device_Manager_21.4/helm/adtran-olt-device-manager'
          OltDevMgr: 'adtran-olt-device-manager'
          num-of-onos: '3'
          num-of-atomix: '3'
          waitTimerForOltUp: 420
          time: '16'

# [EOF]
