Avoid triggering a CI build when I push my code
This is an issue that recently came up for a team, where they used Lerna to package up their javascript components into a mono repository and publish the components back to the git repository hosting their source.
We are using Azure DevOps (formerly Visual Studio Online / Team Foundation Services (naming is hard y'all!)). In it, there's a magic flag feature that allows you to tell the service NOT to perform a CI build when you push e.g. a new distribution as a part of your CI process. It took us a little while to find this flag, so I'm spreading the love here:
How do I avoid triggering a CI build when the script pushes?
Add***NO_CI***
to your commit message. For example,git merge origin/features/hello-world -m "Merge to master ***NO_CI***"
Documentation source: https://docs.microsoft.com/en-us/azure/devops/pipelines/scripts/git-commands?view=vsts
I hope this saves your project some time!
Comments