I have a local instance of Jenkins. I have previously tried storing the jenkins.yml in my system and giving its path on http://localhost:8080/configuration-as-code. This worked but I want to use a Gitlab repository to store the jenkins.yml file.
I have already tried giving the gitlab link of my jenkins.yml in the path or URL textbox. Some weird things happened, like 1. jenkins broke or huge error console 2. It reapplies the previous configuration(from system path)
jenkins:
systemMessage: "Hello, world"