- job-template:
    name: 'gate-openstack-helm{sub}-{integration}-{type}-{node}{suffix}'
    node: '{node}'

    wrappers:
      - build-timeout:
          timeout: 100
      - timestamps

    builders:
      - print-template-name:
          template-name: "{template-name}"
      - link-logs
      - net-info
      - zuul-git-prep
      - install-distro-packages
      - shell: |
          #!/bin/bash -xe
          export INTEGRATION={integration}
          export INTEGRATION_TYPE={type}
          export SUB={sub}
          export GATE_ENVIRONMENT=zuul

          TOOLKIT_TMP=$HOME/helm-toolkit
          mkdir -p $TOOLKIT_TMP

          if [ "$SUB" != "" ] ; then
            /usr/zuul-env/bin/zuul-cloner \
              --cache-dir /opt/git \
              --workspace $TOOLKIT_TMP \
              git://git.openstack.org \
              openstack/openstack-helm
          fi

          tools/gate/setup_gate.sh {node}

    publishers:
      - devstack-logs
      - console-log

- job-template:
    name: 'gate-openstack-helm{sub}-{integration}-{type}-{node}{suffix}'
    node: '{node}'

    wrappers:
      - build-timeout:
          timeout: 100
      - timestamps

    builders:
      - print-template-name:
          template-name: "{template-name}"
      - link-logs
      - net-info
      - zuul-git-prep
      - install-distro-packages
      - shell: |
          #!/bin/bash -xe
          export INTEGRATION={integration}
          export INTEGRATION_TYPE={type}
          export SUB={sub}
          export GATE_ENVIRONMENT=zuul

          TOOLKIT_TMP=$HOME/infra
          mkdir -p $TOOLKIT_TMP

          if [ "$SUB" != "-infra" ] ; then
            /usr/zuul-env/bin/zuul-cloner \
              --cache-dir /opt/git \
              --workspace $TOOLKIT_TMP \
              git://git.openstack.org \
              openstack/openstack-helm-infra
          fi

          tools/gate/setup_gate.sh {node}

    publishers:
      - devstack-logs
      - console-log

Fix a cyclic CRD problem
Fix a cyclic CRD problem

This patch set moves all common libraries and toolkit from OpenStack-Helm
to OpenStack-Helm-Infra, and updates the zuul-cloner call. This allows OS-H
to zuul-clone from a centralized repo, OS-H-Infra.  Previously, OS-H-Infra
can have dependencies on OS-H for the helm-toolkit, but OS-H is also
dependent on the OS-H-Infra for the infrastructure-related charts --
causing a potential cyclical dependencies.

Change-Id: Ic61cdc8391bfd3b5b205a0bde354eef7407c6f48
