]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-build: change to use container/Containerfile 2300/head
authorDan Mick <dan.mick@redhat.com>
Thu, 5 Dec 2024 11:28:04 +0000 (03:28 -0800)
committerDan Mick <dan.mick@redhat.com>
Thu, 5 Dec 2024 22:28:49 +0000 (14:28 -0800)
This is the same change as done by 6361c5c4bac7467893b1f629090712c8c0d736a8
and 435515fe481bd1752b630d23986249e90c0fa4f8 in ceph-dev-new-build, but
for ceph-dev-build.  ceph-container is no longer used.

Also remove CONTAINER_BRANCH parameter from ceph-dev

Signed-off-by: Dan Mick <dan.mick@redhat.com>
ceph-dev-build/build/build_rpm
ceph-dev-build/build/failure
ceph-dev-build/build/setup_rpm
ceph-dev-build/config/definitions/ceph-dev-build.yml
ceph-dev/config/definitions/ceph-dev.yml

index 3ff4f4e6a064d27b1a46ccecd11ddb296cae6270..629d375b2a8dc9e7f303537547eb14e701bf243c 100644 (file)
@@ -88,7 +88,8 @@ if [[ "$CI_CONTAINER" == true && $DISTRO == "centos" && "$RELEASE" =~ 8|9 ]] ; t
     loop=0
     ready=false
     while ((loop < 15)); do
-      if [[ $(curl -s "https://shaman.ceph.com/api/search/?project=ceph&distros=centos/${RELEASE}/${ARCH}&sha1=${SHA1}&ref=${BRANCH}&flavor=${FLAVOR}" | jq -r '.[0].status') == 'ready' ]] ; then ready=true; break; fi
+      curl -s "https://shaman.ceph.com/api/search/?project=ceph&distros=centos/${RELEASE}/${ARCH}&sha1=${SHA1}&ref=${BRANCH}&flavor=${FLAVOR}" > shaman.status
++     if [[ ($(jq -r '.[0].extra.build_url' < shaman.status) == ${BUILD_URL}) && ($(jq -r '.[0].status' < shaman.status) == 'ready') ]] ; then ready=true; break; fi
       ((loop = loop + 1))
       sleep 60
     done
@@ -99,12 +100,9 @@ if [[ "$CI_CONTAINER" == true && $DISTRO == "centos" && "$RELEASE" =~ 8|9 ]] ; t
       # update_build_status "failed" "ceph" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH
       # exit 1
     fi
-
-    cd $WORKSPACE/ceph-container
-    sudo -E CI_CONTAINER=${CI_CONTAINER} SHA1=${SHA1} OSD_FLAVOR=${FLAVOR} CONTAINER_FLAVOR=${BRANCH},${DISTRO},${RELEASE} \
-      /bin/bash ./contrib/build-push-ceph-container-imgs.sh
-    cd $WORKSPACE
-    sudo rm -rf ceph-container
+    # get into $WORKSPACE/$dist/ceph-$cephver, where the copied source tree is
+    cd ${WORKSPACE}/dist/ceph-${cephver}/container
+    CEPH_SHA1=${SHA1} ./build.sh
 fi
 
 # update shaman with the completed build status
index dcd38ebf6b82592f3fb0b4b4d40ea0c4a10d1086..6274d32e96b074ab24866f8d4633297c4415b515 100644 (file)
@@ -1,12 +1,5 @@
 #!/bin/bash -ex
 
-# The ceph-container dir is supposed to get deleted in the build_rpm script.
-# We used to add '|| true' to the container build so the dir would still get
-# deleted even if it failed.  This changed in https://github.com/ceph/ceph-build/pull/1603
-# So now we need to delete the directory or the Wipe Workspace plugin will fail on the next build.
-cd $WORKSPACE
-sudo rm -rf ceph-container
-
 # note: the failed_build_status call relies on normalized variable names that
 # are infered by the builds themselves. If the build fails before these are
 # set, they will be posted with empty values
index c52bf290a19595b7b4bff506f7516b6ce36c488c..d8a1cb4557faa50292710038c95e5e89f456539a 100755 (executable)
@@ -44,6 +44,11 @@ pwd
 
 setup_rpm_build_deps
 
+if [[ $CI_CONTAINER == "true" && $DISTRO == "centos" && "$RELEASE" ~= 8|9 ]] ;
+then
+    podman login -u $CONTAINER_REPO_USERNAME -p $CONTAINER_REPO_PASSWORD $CONTAINER_REPO_HOSTNAME/$CONTAINER_REPO_ORGANIZATION
+fi
+
 cd $WORKSPACE
 
 pkgs=( "chacractl>=0.0.21" )
index a5938b84b0186bf1ff1453ef8bfe6ce1ae871c89..735f144d5a106beff6c6c1121270e41f593c980c 100644 (file)
           days-to-keep: 14
           artifact-days-to-keep: 14
 
-    scm:
-      - git:
-          url: git@github.com:ceph/ceph-container.git
-          basedir: ceph-container
-          credentials-id: 'jenkins-build'
-          branches:
-            - $CONTAINER_BRANCH
-          skip-tag: true
-          wipe-workspace: true
-
     execution-strategy:
        combination-filter: |
          DIST == AVAILABLE_DIST && ARCH == AVAILABLE_ARCH &&
index 56fd39b6afedfee78b3b379a062216af5253c372..ad3b0667c8fc69f115e075ceff297645b37dd833 100644 (file)
@@ -62,11 +62,6 @@ If this is checked, then the binaries will be built and pushed to chacra even if
           description: 'Build container with development release of Ceph?'
           default: true
 
-      - string:
-          name: CONTAINER_BRANCH
-          description: "For CI_CONTAINER: Branch of ceph-container to use"
-          default: main
-
       - string:
           name: CONTAINER_REPO_HOSTNAME
           description: "For CI_CONTAINER: Name of container repo server (i.e. 'quay.io')"