-
Notifications
You must be signed in to change notification settings - Fork 93
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
grgit fails on teamcity #221
Comments
I'm having trouble following what your intended behavior is for these tasks, but here are a few things that look off to me:
Similar things seem to be going on in the update task. It's possible you encounter a failure in TeamCity because you have different branches in your local repo than TeamCity has. Resolving some of the things above might get you where you need to go. |
Feel free to reopen. |
So lets look at task gitCommitToMaster:
Still fails silently. |
I wonder if you're running in to #216? Do you have any hooks turned on within Bitbucket? If so, are there any logs for those that would show whether they're failing or not? As for the branch list not showing everything, do you know if TeamCity clones all of the branches? I know some CI systems won't do that by default. |
2.2.0-rc.1 has a fix to throw an exception for declined/rejected push. You may want to give that a try in case it is tied to your issue. |
Regarding the first issue you were right. It was indeed due to a pre-recieve webhook.
} which then showed me a 401 in the log. |
Sounds good, let me know if the second issue is still happening. |
Hi Andrew, I have build a versioning script. It has to switch between two branches (gradleVersioning and feature/gradle). The script has to checkout and push these branches. Running it locally works as designed. On teamcity push fails silently and after second checkout grgit does not recognize changes in my propertiy files.
my task dependencies:
task gitCommitToMaster should commit and push changes made prior in the build:
task updateDev does change the version and then also commits/pushes
errorlog:
The text was updated successfully, but these errors were encountered: