Skip to content

Instantly share code, notes, and snippets.

@hgautam
Last active July 24, 2020 17:54
Show Gist options
  • Save hgautam/8fc0b45a5aa5c5b2589ba39cc7497718 to your computer and use it in GitHub Desktop.
Save hgautam/8fc0b45a5aa5c5b2589ba39cc7497718 to your computer and use it in GitHub Desktop.
Reset Jenkins X cluster

After you have imported projects into Jenkins X, few dependencies get added to the cluster config inside environment--dev repository. Please follow the following steps to remove all such references:

cd environment-<cluster-name>-dev
git pull origin master
rm -rf dependency-matrix
rm repositories/templates/<$yourGHUserID>-<$imported-repo-name>-sr.yaml

After executing the last command, you should only see one file inside repositories/templates/ dir.

pwd
~/environment-jxboot-dev/repositories/templates
ls
default-group.yaml

Commit changes and push them to remote master.

git add .
git commit -m “remove unused data”
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment