Push both commit and tags, checkout with SSH to allow pushing of repos
Change-Id: I305ff593651ecdd45b8a37183a769582817732a8
diff --git a/jjb/charts.yaml b/jjb/charts.yaml
index 4061fc2..5a2d7fc 100644
--- a/jjb/charts.yaml
+++ b/jjb/charts.yaml
@@ -57,10 +57,10 @@
git config --global user.name "Jenkins"
# Checkout 'cord-charts-repo' repo that contains updated charts
- git clone https://gerrit.opencord.org/cord-charts-repo
+ git clone ssh://jenkins@gerrit.opencord.org:29418/cord-charts-repo.git
# Clone the `helm-repo-tools` which contains scripts
- git clone https://gerrit.opencord.org/helm-repo-tools
+ git clone ssh://jenkins@gerrit.opencord.org:29418/helm-repo-tools.git
# Setup and build the helm repo
helm init --client-only
@@ -87,8 +87,8 @@
echo "Tags including new tag:"
git tag -n
- # push new tag back into repo
- git push origin "$NEW_VERSION"
+ # push new commit and tag back into repo
+ git push --follow-tags origin
popd
# Set up the ssh host keys for the docs host