Refactor templates and scripts for container tag
[releng/global-jjb.git] / shell / docker-get-git-describe.sh
diff --git a/shell/docker-get-git-describe.sh b/shell/docker-get-git-describe.sh
deleted file mode 100644 (file)
index c1a3d21..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/bash
-# SPDX-License-Identifier: EPL-1.0
-##############################################################################
-# Copyright (c) 2019 The Linux Foundation and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-##############################################################################
-echo "---> docker-get-git-describe.sh"
-# Gets the container tag using git describe.
-
-set -eu -o pipefail
-
-cd "$DOCKER_ROOT"
-
-image_build_tag=$(git describe)
-
-if [ -z "$image_build_tag" ]
-then
-    echo "git describe returned an empty value, make sure a version tag is applied"
-    exit 1
-fi
-echo "---> Tag found: $image_build_tag"
-# Write DOCKER_IMAGE_TAG information to a file so it can be injected into the
-# environment for following steps
-echo "DOCKER_IMAGE_TAG=$image_build_tag" >> "$WORKSPACE/env_docker_inject.txt"