The use of Configuration Scripts in Mission Control allows you to create or update repositories across multiple instances at once, with a click of a button. Configuration Scripts are not predefined in Mission Control out of the box. You will need to create them simply by visiting our GitHub channel, which contains many groovy scripts, copy specific groovy script and paste it into Mission Control Setting.
We will walk you through some simple steps on how to create Configuration Scripts, and how to apply them on any instance. In this example, we will create a repository called "maven-snapshot-local" and will apply it to two instances.
1. Visit our GitHub channel for Mission Control
2. Go to “repository/create” folder, and click on local-maven-snapshots.groovy
3. From the groovy script, copy the selected area shown below:
4. Open Mission Control on your browser, Login as an Admin and click on Settings, located in the upper right corner.
5. Click on the “Repository” tab
6. Click "New".
7. Fill out all windows shown below, paste your groovy code from Step 3 in the “Template DSL *” window and click the “Submit” button.
8. Go to [Manage] [Repositories] [New Repository], select the appropriate Artifactory instance(s) and click on the “Apply Roles” tab.
9. Under the “Apply Roles” tab choose the appropriate Role, choose which Artifactory instance you want to apply. After you click "Add button, the “Applied Roles” window will be populated with a role will, then click on “User Input” tab.
10. Under “User Input” tab, in repoName window, write the name of the repo you creating, then click on “Summary” tab.
11. Under “Summary” tab click on “Execute All” button, and you should see “Success” message.
12. Your “Pending” status should change to “Success”
13.Now we can check whether it was successfully deployed to selected Artifactory instance, Go to [Dashboard] and click on your Artifactory instance, it will take you to Artifactory. Once there, look for your repository.
14. As you can see the repository is published successfully.