Latest CHANGELOG on the Gitlab CI github.com repo states that
- Job can be branch specific or tag specific or both
Has anyone tried this feature? How would I go about making a build for a specific branch? I have not seen any obvious options for it.
Here is a screenshot of the new Job page view.
So, where can I configure branch/tag names for any particular job?
In my scenario, what I want to achieve is the following:
master should run tests, perform a release and deploy to a production-like server.master, should just run tests and report coverage.You can do this by specifying the branches under the only: attribute in your gilab-ci.yml:
production:
script:
- echo 'hello world'
only:
- master
For another example, see here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With