Skip to content
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

Run build on merged source #19

Open
JonCubed opened this issue Aug 8, 2014 · 3 comments
Open

Run build on merged source #19

JonCubed opened this issue Aug 8, 2014 · 3 comments
Assignees

Comments

@JonCubed
Copy link

JonCubed commented Aug 8, 2014

Would be nice if we could run a build on the merged source of the pull request, not sure if this is possible, perhaps via an agent plugin?

@meriouma
Copy link
Member

meriouma commented Aug 8, 2014

GitHub supports it via the /merge path, but as far as I know, neither Bitbucket nor Stash support this.

@JonCubed
Copy link
Author

That is correct, I was thinking maybe the server plugin adds some build parameters and an agent plugin checks for them. If it finds them then it does the checkout and merge instead of checking out the source. For github it could just checkout the merge that was created.

@Lechus
Copy link

Lechus commented Aug 5, 2016

@meriouma , @olafleur : Any chance it will be added?

call "%env.TEAMCITY_GIT_PATH%" fetch origin
call "%env.TEAMCITY_GIT_PATH%" checkout -b develop origin/develop
call "%env.TEAMCITY_GIT_PATH%" merge %teamcity.build.branch%

Or maybe adding one more step - something like patching?
curl https://bitbucket.org/!api/2.0/repositories/{owner}/{repo}/pullrequests/{pullnumber}/patch | git am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants