The Script Plugin allows you to use the internal SCM-Manager API, which is not accessible to the REST API or other clients. Scripts are especially useful when you want to do something after a specific event is triggered. You can also change multiple repositories, users, or groups at once.
If you want to try it out, install the Script Plugin and simply paste the contents of any sample script into the
Run field and start the script.
To give you an idea what you could do with the script plugin:
- Rename a whole namespace
- Delete a whole namespace
- Create a new user
- Reverse Mirror => Push every change to a remote repository
- Set all Subversion repositories to
- Delete all inactive users
- Send a notification to discord on each repository push
- Almost everything the SCM-Manager can do
In this repository we will collect scripts from simple to very complex examples.
If you want to share your scripts with the community, contact us, and we will add them here.
Since you can do almost everything possible in SCM-Manager, you should be aware that you can use scripts to delete your data or even destroy your whole instance.
Therefore, check your scripts carefully before applying them to your production data.
We know that using our internal API can be very difficult if you don’t know what classes, services and functions we provide. Feel free to ask us if your script doesn’t work as it should or you have no idea how to get started.