Button to auto-provision required files for Maven integration
We should make it easier to set up the required configuration for deploying to and pulling packages from our Maven repository. There are two files which we would need to provision:
We explored the option to set these automatically and transparently like we do with our Kubernetes configuration, but Maven cannot be easily configured by environment files. This means that these files need to make it on disk somehow on the Runner. To do this would require either getting these files into the repo, or making runner changes.
For the boring solution, we should choose to make it easy to set up these files in the repo, and then utilizing them with CI.
- On our empty state screen, we should add a button to provision these two files in the repo (#7926 (closed))
- This would create the files in the
/cifolder. We can leverage environment variables for the CI_JOB_TOKEN and Project ID.
- We can then include a sample line of shell code to either copy these to the right places to be found automatically, or tell Maven to use them instead.