]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-tag: Always run playbook regardless of TAG
authorDavid Galloway <david.galloway@ibm.com>
Wed, 20 Aug 2025 21:37:05 +0000 (17:37 -0400)
committerDavid Galloway <david.galloway@ibm.com>
Fri, 12 Sep 2025 20:50:04 +0000 (16:50 -0400)
The individual tasks in the role already have when statements.

Signed-off-by: David Galloway <david.galloway@ibm.com>
ceph-tag/build/build

index 1fbde3d15bdae1412abf270a7605ac2a8e10acd3..61749994c39ebbb58ef6f4634aea9af42a8cfd03 100644 (file)
@@ -2,20 +2,16 @@
 
 set -ex
 
-if [ "$TAG" = false ] ; then
-    echo "Assuming tagging process has succeeded before because TAG was set to false"
-else
-    # the following two methods exist in scripts/build_utils.sh
-    pkgs=( "ansible" )
-    TEMPVENV=$(create_venv_dir)
-    VENV=${TEMPVENV}/bin
-    install_python_packages $TEMPVENV "pkgs[@]"
-    
-    # remove "-release" from $BRANCH variable in case it was accidentally passed in the Jenkins UI
-    BRANCH=${BRANCH//-release/}
-    
-    # run ansible to do all the tagging and release specifying
-    # a local connection and 'localhost' as the host where to execute
-    cd "$WORKSPACE/ceph-build/ansible/"
-    $VENV/ansible-playbook -i "localhost," -c local release.yml --extra-vars="stage=push version=$VERSION branch=$BRANCH force_version=$FORCE_VERSION release=$RELEASE_TYPE tag=$TAG project=ceph token=$GITHUB_TOKEN"
-fi
+# the following two methods exist in scripts/build_utils.sh
+pkgs=( "ansible" )
+TEMPVENV=$(create_venv_dir)
+VENV=${TEMPVENV}/bin
+install_python_packages $TEMPVENV "pkgs[@]"
+
+# remove "-release" from $BRANCH variable in case it was accidentally passed in the Jenkins UI
+BRANCH=${BRANCH//-release/}
+
+# run ansible to do all the tagging and release specifying
+# a local connection and 'localhost' as the host where to execute
+cd "$WORKSPACE/ceph-build/ansible/"
+$VENV/ansible-playbook -i "localhost," -c local release.yml --extra-vars="stage=push version=$VERSION branch=$BRANCH force_version=$FORCE_VERSION release=$RELEASE_TYPE tag=$TAG project=ceph token=$GITHUB_TOKEN"