Add generic packer templates
[releng/global-jjb.git] / shell / packer-clear-credentials.sh
diff --git a/shell/packer-clear-credentials.sh b/shell/packer-clear-credentials.sh
new file mode 100644 (file)
index 0000000..099f559
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+# SPDX-License-Identifier: EPL-1.0
+##############################################################################
+# Copyright (c) 2017 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 "---> packer-clear-credentials.sh"
+
+#!/bin/bash
+set +e  # DO NOT cause build failure if any of the rm calls fail.
+rm "$CLOUDENV"
+rm "$HOME/.config/openstack/clouds.yaml"
+exit 0