From 91d975d5c426a08e82d8a6bbe1e298fa82f2b7b5 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Mon, 24 Jul 2017 18:10:08 -0400 Subject: [PATCH] Remove unnecessary openstack configuration file The packer jobs do not use openstack so do not require a clouds.yaml file. Change-Id: Iaccaa906980eb077676a3dc4b9100a91ec65f8c0 Signed-off-by: Thanh Ha --- README.md | 3 --- jjb/lf-macros.yaml | 6 ++---- shell/packer-clear-credentials.sh | 2 -- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index dbbf0d99..bc6fcc71 100644 --- a/README.md +++ b/README.md @@ -181,7 +181,6 @@ ci-management.yaml: project: ci-management project-name: ci-management branch: master - os-cloud-file-id: 'ci-managed-file-id' build-node: centos7-basebuild-2c-1g platforms: @@ -208,8 +207,6 @@ Required parameters: **project**: is the project repo as defined in source control. **project-name**: is a custom name to call the job in Jenkins. **build-node**: is the name of the builder to use when building (Jenkins label). -**os-cloud-file-id**: is the name of the managed file-id, which contains -credentials required for packer to spin up build nodes on the cloud provider. **platforms**: is a list of supported platforms. **templates**: is a list of supported templates. diff --git a/jjb/lf-macros.yaml b/jjb/lf-macros.yaml index d0f596b4..20a5c6b8 100644 --- a/jjb/lf-macros.yaml +++ b/jjb/lf-macros.yaml @@ -76,10 +76,8 @@ builders: - config-file-provider: files: - - file-id: '{os-cloud-file-id}' - target: '$HOME/.config/openstack/clouds.yaml' - - file-id: 'packer-cloud-env' - variable: 'CLOUDENV' + - file-id: packer-cloud-env + variable: CLOUDENV - inject: properties-content: | PACKER_PLATFORM={platform} diff --git a/shell/packer-clear-credentials.sh b/shell/packer-clear-credentials.sh index 099f5591..093b16b4 100644 --- a/shell/packer-clear-credentials.sh +++ b/shell/packer-clear-credentials.sh @@ -10,8 +10,6 @@ ############################################################################## 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 -- 2.16.6