- job:
    name: 'gate-trove-buildimage-mysql'
    node: 'bare-precise'

    builders:
      - link-logs
      - net-info
      - gerrit-git-prep
      - shell: |
          #!/bin/bash -xe
          sudo mkdir -p /opt/stack
          sudo chown $(whoami) /opt/stack
          export DEST=/opt/stack
          cd scripts
          ./redstack build-image mysql
          mv $HOME/images/ubuntu_mysql/ubuntu_mysql.qcow2 $WORKSPACE/ubuntu_mysql.qcow2

    publishers:
      - scp:
          site: 'tarballs.openstack.org'
          files:
            - source: 'ubuntu_mysql.qcow2'
              target: 'trove/images/ubuntu_mysql.qcow2'
              keep-hierarchy: false
              copy-after-failure: false
      - console-log
- job:
    name: 'gate-trove-buildimage-mysql'
    node: 'bare-precise'

    builders:
      - link-logs
      - net-info
      - gerrit-git-prep
      - shell: |
          #!/bin/bash -xe
          sudo mkdir -p /opt/trove-image-build
          sudo chown $(whoami) /opt/trove-image-build
          export DEST=/opt/trove-image-build
          export KEY_DIR=`pwd`/files/keys
          cd scripts
          ./redstack build-image mysql
          mv $HOME/images/ubuntu_mysql/ubuntu_mysql.qcow2 $WORKSPACE/ubuntu_mysql.qcow2

    publishers:
      - scp:
          site: 'tarballs.openstack.org'
          files:
            - source: 'ubuntu_mysql.qcow2'
              target: 'tarballs/trove/images/ubuntu_mysql.qcow2'
              keep-hierarchy: false
              copy-after-failure: false
      - console-log
Fix experimental trove-image-build gate job
Fix experimental trove-image-build gate job

Fixed the experimental trove-image-build gate job to:
- Use /opt/trove-image-build instead of /opt/stack to avoid confusion
  with dvm-gate jobs.
- Export the right value for KEY_DIR
- Copy the built image to the correct location on tarballs.o.o

Change-Id: Idc1ea86fe7c692f318d5c6b004f73c10293d4607
