]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-new-build: extract artifacts prior to attempting windows build 1752/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 25 Feb 2021 18:19:57 +0000 (13:19 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 25 Feb 2021 18:21:35 +0000 (13:21 -0500)
Also fixed the chacra endpoints to be consistent between the setup and
build steps.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
ceph-dev-new-build/build/build_mingw
ceph-dev-new-build/build/setup_mingw

index cb8ebcc8365659538c30c4e416aba2bae2d4a539..70ddfb23f1a6ab6ea91d527d26179971c697ff23 100644 (file)
@@ -10,7 +10,7 @@ if [ "$THROWAWAY" = false ]; then
     [ "$FORCE" = true ] && chacra_binary="$chacra_binary --force"
 
     find build -name "*.zip" |
-        $chacra_create ${chacra_endpoint}/source/flavors/${FLAVOR}
+        $chacra_create ${chacra_repo_endpoint}
 
     # write json file with build info
     cat > $WORKSPACE/repo-extra.json << EOF
index f430aa986c25a68e1e9d93416eab4fa0a0625633..a8611678081a7099df94005246b4d39547240b91 100644 (file)
@@ -20,12 +20,16 @@ export LC_ALL=C # the following is vulnerable to i18n
 
 BRANCH=`branch_slash_filter $BRANCH`
 
-cd $WORKSPACE
-
-vers=$(cat ./dist/version)
+cd ${WORKSPACE}/dist
+vers=$(cat version)
 raw_version=`echo $vers | cut -d '-' -f 1`
 RELEASE_BRANCH=$(release_from_version $raw_version)
 
+# unpack the tar.gz that contains the source
+tar xzf *.orig.tar.gz
+cd $(basename *.orig.tar.gz .orig.tar.gz | sed s/_/-/)
+pwd
+
 raw_version_major=$(echo $vers | cut -d '.' -f 1)
 if [ 0${raw_version_major} -lt 16 ]; then
     echo The following Ceph release does not support Windows: $RELEASE_BRANCH
@@ -49,9 +53,9 @@ make_chacractl_config
 FLAVOR="default"
 
 chacra_ref="$BRANCH"
-chacra_endpoint="ceph/${chacra_ref}/${SHA1}/${DIST}/${ARCH}"
-chacra_repo_endpoint="${chacra_endpoint}/flavors/${FLAVOR}"
-chacra_check_url="${chacra_endpoint}/ceph.zip"
+chacra_endpoint="ceph/${chacra_ref}/${SHA1}/${DIST}/${NORMAL_DISTRO_VERSION}"
+chacra_repo_endpoint="${chacra_endpoint}/${ARCH}/flavors/${FLAVOR}"
+chacra_check_url="${chacra_repo_endpoint}/ceph.zip"
 
 if [ "$THROWAWAY" = false ] ; then
     # this exists in scripts/build_utils.sh