@@ -71,7 +71,8 @@ for i in $(seq 0 64); do
7171 fi
7272done
7373
74- chown -R ubuntu:ubuntu " ${REPO_ROOT} "
74+ chown -R ubuntu:ubuntu " ${REPO_ROOT} " # ci resource
75+ chown -R ubuntu:ubuntu " ${REPO_PARENT} /bosh-linux-stemcell-builder"
7576chown -R ubuntu:ubuntu /mnt
7677
7778OS_IMAGE=" "
@@ -84,7 +85,7 @@ sudo chmod u+s "$(which sudo)"
8485sudo --preserve-env --set-home --user ubuntu -- /bin/bash --login -i << SUDO
8586set -e
8687
87- cd "${REPO_ROOT} "
88+ cd "${REPO_PARENT} /bosh-linux-stemcell-builder "
8889bundle install
8990
9091if [[ -z "$OS_IMAGE " ]]; then
@@ -107,7 +108,7 @@ mkdir -p "$( dirname "$meta4_path" )"
107108rm -f " $meta4_path "
108109meta4 create --metalink=" $meta4_path "
109110
110- raw_images=( " ${REPO_ROOT} /tmp" /* -raw.tgz )
111+ raw_images=( " ${REPO_PARENT} /bosh-linux-stemcell-builder /tmp" /* -raw.tgz )
111112if [ " ${# raw_images[@]} " -ge 2 ]; then
112113 echo " Found more than one raw image: '${raw_images[*]} '" >&2
113114 exit 1
116117if [ -e " ${raw_images[0]} " ] ; then
117118 # openstack currently publishes raw files
118119 raw_stemcell_filename=" ${stemcell_name} -raw.tgz"
119- mv " ${REPO_ROOT} /tmp" /* -raw.tgz " ${REPO_PARENT} /stemcell/${raw_stemcell_filename} "
120+ mv " ${REPO_PARENT} /bosh-linux-stemcell-builder /tmp" /* -raw.tgz " ${REPO_PARENT} /stemcell/${raw_stemcell_filename} "
120121
121122 meta4 import-file --metalink=" $meta4_path " --version=" ${CANDIDATE_BUILD_NUMBER} " " ${REPO_PARENT} /stemcell/${raw_stemcell_filename} "
122123 meta4 file-set-url --metalink=" $meta4_path " --file=" ${raw_stemcell_filename} " " https://${S3_API_ENDPOINT} /${STEMCELL_BUCKET} /${IAAS} /${raw_stemcell_filename} "
123124fi
124125
125126stemcell_filename=" ${stemcell_name} .tgz"
126- mv " ${REPO_ROOT} /tmp/${stemcell_filename} " " ${REPO_PARENT} /stemcell/${stemcell_filename} "
127+ mv " ${REPO_PARENT} /bosh-linux-stemcell-builder /tmp/${stemcell_filename} " " ${REPO_PARENT} /stemcell/${stemcell_filename} "
127128
128129meta4 import-file --metalink=" $meta4_path " --version=" ${CANDIDATE_BUILD_NUMBER} " " ${REPO_PARENT} /stemcell/${stemcell_filename} "
129130meta4 file-set-url --metalink=" $meta4_path " --file=" ${stemcell_filename} " " https://${S3_API_ENDPOINT} /${STEMCELL_BUCKET} /${IAAS} /${stemcell_filename} "
0 commit comments