]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
[wnbd-build] Remove `FORCE` parameter 1994/head
authorIonut Balutoiu <ibalutoiu@cloudbasesolutions.com>
Fri, 29 Apr 2022 10:56:21 +0000 (13:56 +0300)
committerIonut Balutoiu <ibalutoiu@cloudbasesolutions.com>
Fri, 29 Apr 2022 11:09:49 +0000 (14:09 +0300)
Remove the `FORCE` parameter from the `wnbd-build` Jenkins job, and
use it by default.

The `wnbd` project is not updated that frequently, so the daily
build trigger mostly skips the Chacra upload. This is a problem
because when old Chacra artifacts are deleted, the `wnbd` build will
not be available in Chacra.

We need `wnbd` to always be available in Chacra, since the
Windows Teuthology tests will try to download it from there.

wnbd-build/build/build
wnbd-build/build/setup
wnbd-build/config/definitions/wnbd-build.yml

index 4857db06d9c0f57fc7f04b8beb2bef1e79c1a70c..ba7bb7becf76a3ad51e1e300dcae65f0ca313644 100644 (file)
@@ -60,8 +60,7 @@ zip -r $WORKSPACE/wnbd.zip wnbd
 #
 if [ "$THROWAWAY" = false ]; then
     # push binaries to chacra
-    chacra_binary="$VENV/chacractl binary"
-    [ "$FORCE" = true ] && chacra_binary="$chacra_binary --force"
+    chacra_binary="$VENV/chacractl binary --force"
 
     ls $WORKSPACE/wnbd.zip | $chacra_binary create ${chacra_binary_endpoint}
 
index 529eaeca2e81eae6da8973eeb560c196338a81a5..dfc7a5b26510d8a8e5055e4419a0277b52bd71b2 100644 (file)
@@ -25,10 +25,5 @@ chacra_binary_endpoint="${chacra_endpoint}/${ARCH}/flavors/${FLAVOR}"
 chacra_repo_endpoint="${chacra_endpoint}/flavors/${FLAVOR}"
 chacra_check_url="${chacra_binary_endpoint}/wnbd.zip"
 
-if [ "$THROWAWAY" = false ] ; then
-    # this exists in scripts/build_utils.sh
-    check_binary_existence $VENV $chacra_check_url
-fi
-
 # create build status in shaman
 update_build_status "started" "wnbd" $DISTRO $DISTRO_VERSION $ARCH
index 9dce8cbd7c2a1c62cd8e402ebc3842aa38ac8434..4cc90eb19d2e3046b100a697b76b896e4b7c5c2e 100644 (file)
             Default: False. When True it will not POST binaries to chacra. Artifacts will not be around for long. Useful to test builds.
           default: false
 
-      - bool:
-          name: FORCE
-          description: |
-            If this is unchecked, then nothing is built or pushed if they already exist in chacra. This is the default.
-
-            If this is checked, then the binaries will be built and pushed to chacra even if they already exist in chacra.
-
     triggers:
       - timed: "H 0 * * *"