-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PullRequest clones always default branch #47
Comments
Any info? |
Is your branch name of the pull request prefixed by |
Yes my branch is prefixed by feature. In teamcity it says it's building correct branch but i spotted this by removing test on the branch. Even after removing, it was running. Checked sources in work directory and it was wrong branch. |
Hmm, I'm having a hard time figuring what could be wrong. If TeamCity is building the correct branch, then the trigger works as expected, otherwise you would see a build of |
If i trigger build manually using run button and i chose which branch it all works fine. Gonna check what will happen if i set clean all files.. |
Thanks for the detailed report. I spotted 3 differences with how we use it :
Could you try server side checkout? Regarding versions, we're running the plugin on TeamCity 8.0.1, TeamCity 9.0.1, TeamCity 9.1 and TeamCity 9.1.6 |
Tried all except removing "apporve on success". I'll try to apply all of above. edit. Tried, makes no difference. Still builds develop. |
Teamcity 9.0.4 - works with feature branch with settings as @meriouma suggested above. |
any info? Maybe you have any idea what else i can investigate? Tried changing my branch specification from |
I'm running out of ideas. Can you try watching |
Yeah, thanks! Started working after changing to |
Hello,
I'm using teamcity 9.1.4 and I wanted to build my feature branches (all are based on develop branch). I made configuration for VCS root and configured branch specification there:
Default branch:
develop
Branch specification:
+:refs/heads/feature/*
base branch:
develop
Teamcity detects pull requests but it builds with sources from develop branch not from feature branches. Is it possible that teamcity api has changed and triggering build for specific branch no longer works? Or i missconfigured something?
Edit:
I've changed default branch in vcs root to another branch and it started building this branch. So no matter what my branch specification is it always builds default branch from vcs root.
The text was updated successfully, but these errors were encountered: