From a2094a11cb5ed792f53e64abd8ffb3da751a7150 Mon Sep 17 00:00:00 2001 From: maheshopsmx Date: Thu, 10 Mar 2022 15:05:42 +0530 Subject: [PATCH] added the save path functionality --- .../pipeline-promotion/pipe-promot-scripts-cm.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/oes/templates/pipeline-promotion/pipe-promot-scripts-cm.yaml b/charts/oes/templates/pipeline-promotion/pipe-promot-scripts-cm.yaml index 35820e83..3298812c 100644 --- a/charts/oes/templates/pipeline-promotion/pipe-promot-scripts-cm.yaml +++ b/charts/oes/templates/pipeline-promotion/pipe-promot-scripts-cm.yaml @@ -58,7 +58,12 @@ data: ]\n then\n echo \"Not Provided the Branch in the spinnaker UI....Continuing with the default branch sprcified in configmap\"\n echo $git_branch\n else\n echo \"Provided the User defined Branch in spinnaker UI\"\n git_branch=$BRANCH_NAME_UI\n - \ echo $git_branch\nfi\nsource $SBASE/spin.sh\nsource $SBASE/stash.sh\nsource + \ echo $git_branch\nfi\nROOT_FOLDER_UI=$(echo $rootfolder_ui | sed 's/[][]//g')\necho + $ROOT_FOLDER_UI\nif [ -z \"$ROOT_FOLDER_UI\" ]\n then\n echo + \"Not Provided the Branch in the spinnaker UI....Continuing with the default branch + sprcified in configmap\"\n echo $root_folder\n else\n echo \"Provided + the User defined Branch in spinnaker UI\"\n root_folder=$ROOT_FOLDER_UI\n + \ echo $root_folder\nfi\n\nsource $SBASE/spin.sh\nsource $SBASE/stash.sh\nsource $SBASE/s3.sh\nsource $SBASE/github.sh\nsource $SBASE/bitbucket.sh\necho \"Sourcing complete\"\nsync_repo_from_spinnaker(){\n\tif [[ $repo_type = \"s3\" ]];\n \tthen\n\t \ upload_spin_to_s3\n\telif [[ $repo_type = \"stash\" ]]; then\n\t\tsync_spin_to_stash\n