TeamCity / BitBucket - Commit Status Publisher - teamcity

We've got our source code up in BitBucket cloud and we're using TeamCity, with the "Commit Status Publisher" plugin. I was using our repository url (for example https://bitbucket.org/test/test.git) as the "Stash base url", which worked for a while, but then I started getting a 404 just recently. I tried using BitBuckets new build status api (https://confluence.atlassian.com/bitbucket/buildstatus-resource-779295267.html?_ga=1.155356926.432767113.1452136822), but I get a 405 error. Does anyone know which url I should be using and how to configure this in TeamCity? Is there a better plugin I could be using?
Thank you in advance,
Andrew

Bitbucket Cloud (bitbucket.org) and Bitbucket Server (formely known as Stash) use different API. Please install the latest version of the Commit Status Publisher plugin, it provides a dedicated support for Bitbucket Cloud.

Related

How to Do Jenkins Save/Apply event from script

I am using this https://python-jenkins.readthedocs.io/en/latest/ python Jenkins API to create a job from XML config. Everything working fine except the webhook for Bitbucket server. I need to hit save/apply button at least once to activate the Webhook. Is there any way to call this Save/apply event through any script or API?
It would be a great help if anyone can suggest a solution.
This Problem is resolved with the latest update of Jenkins - Bitbucket server integration Plug-in

Xcode Server - Run Integration on Pull Request

I am setting up CI on Xcode Server and I am trying to start integration as soon as Pull requests are created. My repository is on GitHub. Is there any way it can be done. I didn’t find any option in Xcode Server. Only thing I have found is to change repository.
Any help would be much appreciated!
Thanks!!!

How To Decorate PullRequest in BitBucket (Cloud) Pipelines with SonarQube 7.9

I have a private SonarQube 7.9 installation on EC2 in AWS. I have successfully integrated our BitBucket (cloud (ie, not server/stash)) Pipeline build to use the SonarQube instance. I would like to take the next step and use the information to decorate our PullRequests with the analysis results from SonarQube; however, it seems like it may not be possible. It seems SonarCloud nicely integrates with BitBucket. Meanwhile, SonarQube only perhaps integrates well with a BitBucket server repository?
The only BitBucket plugin for SonarQube is this: https://github.com/mibexsoftware/sonar-bitbucket-plugin and it explicitly states that it only works with SonarQube 7.7 or earlier.
Any help would be appreciated. Thanks
I would like to share my research so far, which supports your conclusion:
PR decoration by Sonarqube does not support Bitbucket Cloud.
https://docs.sonarqube.org/7.9/analysis/pull-request/ OR
https://docs.sonarqube.org/latest/analysis/pr-decoration/
"Bitbucket Cloud plug-in for SonarQube" only supports <7.7, but our Sonarqube is 7.9.
"Sonar for Bitbucket Cloud" is only applicable to PUBLIC repository.
UPDATE:
As of SonarQubte 8.9LTS Developer edition or higher,
PR decoration to Bitbucket Cloud seems to be supported.
https://docs.sonarqube.org/latest/analysis/bitbucket-cloud-integration/

Trigger Teamcity build from bitbucket cloud on pull request

I have been trying to trigger a build on TC on PR but the refs I have access to TC doesnt include refs/pull or refs/pull-request. Is this a Bitbucket cloud thing? Given that being the case how do I trigger build specifically on pull request?
There is a Bitbucket PR plugin for TeamCity: https://github.com/ArcBees/teamcity-plugins/wiki/Configuring-Bitbucket-Pull-Requests-Plugin
Bitbucket doesn't seem to offer access to pull requests the same way github does, but the plugin does the trick for us.

API Management with GIT and Octopus - Git PUSH / Git PULL

Following on from this post of mine:
API Management with GIT
I have an API management instance running. I know API management has its own GIT repository.
I can successfully clone, change and push changes up to my API management GIT repository.
I am also running Octopus deploy and am trying to use this:
Git Push
and this:
Git Pull
To pull my code from my companies GIT repository and push to the APIM GIT repository.
The thing is, these to plugins fail immediately with an issue not being able to find file paths on the Octopus server. Also, these were written in 2014.
Is there a recommended better way to pull from your companies repo and push to APIM repository? Also, if I am pulling to Octopus, where does the code get stored before it is pushed to APIM?
In the end, I think this plug in is out of date. I ended up writing my own PowerShell GIT bash and it works a treat.
I get the APIM json code from my companies source control then push it ti the APIM GIT repository and publish it using PowerShell.
For anyone who has this issue in the future.
The cause is most likely you are trying to use the GitPull step from the octopus server, while the code behind the step makes reference to this parameter $OctopusParameters['Octopus.Tentacle.Agent.ApplicationDirectoryPath'].
This parameter seems to return an empty value. I have not tried running from a Deployment Target.
The git clone directory could be another parameter/variable specified
I am raising this with the Octopus team.

Resources