![]() ![]() Shell Script How do I avoid triggering a CI build when the script pushes?Īdd to your commit message or description. Yes Which tasks can I use to run Git commands? On the build tab add this as the last task: TaskįAQ Can I run Git commands if my remote repo is in GitHub or another Git service such as Bitbucket Cloud? Git merge %sourceBranch% -m "Merge to main" ![]() SET sourceBranch=origin/%BUILD_SOURCEBRANCH:refs/heads/=% IF %BUILD_SOURCEBRANCH% = refs/heads/main (ĮCHO Building main branch so no merge is needed. On the Triggers tab, select Continuous integration (CI) and include the branches you want to build.Ĭreate merge.bat at the root of your repo: offĮCHO SOURCE BRANCH IS %BUILD_SOURCEBRANCH% You want a CI build to merge to main if the build succeeds. On the variables tab, create or modify the Build.Clean variable and set it to source On the repository tab, set Clean to true. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |