All Projects β†’ TrimbleSolutionsCorporation β†’ Teamcitytriggerhook

TrimbleSolutionsCorporation / Teamcitytriggerhook

Licence: lgpl-3.0
Bitbucket Plugin to Trigger Builds in Teamcity

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Teamcitytriggerhook

Oauth
πŸ”— OAuth 2.0 implementation for various providers in one place.
Stars: ✭ 336 (+3260%)
Mutual labels:  bitbucket
Renovate
Universal dependency update tool that fits into your workflows.
Stars: ✭ 6,700 (+66900%)
Mutual labels:  bitbucket
Scala Steward
πŸ€– A bot that helps you keep your Scala projects up-to-date
Stars: ✭ 812 (+8020%)
Mutual labels:  bitbucket
Gosint
OSINT Swiss Army Knife
Stars: ✭ 401 (+3910%)
Mutual labels:  bitbucket
Git Deploy
Php Script for Auto-Pull in server (Using WebHook from GitLab, GitHub and Bitbucket)
Stars: ✭ 495 (+4850%)
Mutual labels:  bitbucket
Atlassian Python Api
Atlassian Python REST API wrapper
Stars: ✭ 564 (+5540%)
Mutual labels:  bitbucket
Generic Webhook Trigger Plugin
Can receive any HTTP request, extract any values from JSON or XML and trigger a job with those values available as variables. Works with GitHub, GitLab, Bitbucket, Jira and many more.
Stars: ✭ 287 (+2770%)
Mutual labels:  bitbucket
Psstash
Atlassian Stash PowerShell Module
Stars: ✭ 8 (-20%)
Mutual labels:  bitbucket
Vssue
πŸ“« A Vue-powered Issue-based Comment Plugin
Stars: ✭ 496 (+4860%)
Mutual labels:  bitbucket
Git Credential Manager Core
Secure, cross-platform Git credential storage with authentication to GitHub, Azure Repos, and other popular Git hosting services.
Stars: ✭ 670 (+6600%)
Mutual labels:  bitbucket
Upmgitextension
This package extends the UI of Unity Package Manager (UPM) for the packages installed from git repository.
Stars: ✭ 438 (+4280%)
Mutual labels:  bitbucket
Danger
🚫 Stop saying "you forgot to …" in code review (in Ruby)
Stars: ✭ 4,691 (+46810%)
Mutual labels:  bitbucket
Webhooks
🎣 Webhook receiver for GitHub, Bitbucket, GitLab, Gogs
Stars: ✭ 601 (+5910%)
Mutual labels:  bitbucket
Ghorg
Quickly clone an entire org/users repositories into one directory - Supports GitHub, GitLab, Bitbucket, and more
Stars: ✭ 377 (+3670%)
Mutual labels:  bitbucket
Git Repo
Git-Repo: CLI utility to manage git services from your workspace
Stars: ✭ 818 (+8080%)
Mutual labels:  bitbucket
Reviewdog
🐢 Automated code review tool integrated with any code analysis tools regardless of programming language
Stars: ✭ 4,541 (+45310%)
Mutual labels:  bitbucket
Refined Bitbucket
Chrome and Firefox extension that improves Bitbucket's user experience
Stars: ✭ 560 (+5500%)
Mutual labels:  bitbucket
Trackdown
TrackDown - Issue Tracking with plain Markdown. If you are missing the "git clone" for your tickets from github.com or bitbucket.org, then this is for you. A lightweight Ticketing System for distributed and unconnected small Teams.
Stars: ✭ 10 (+0%)
Mutual labels:  bitbucket
Bucketlist
See what's in your BitBucket Server
Stars: ✭ 18 (+80%)
Mutual labels:  bitbucket
Git Touch
An open-source app for GitHub, GitLab, Bitbucket, Gitea, and Gitee(码云), built with Flutter
Stars: ✭ 663 (+6530%)
Mutual labels:  bitbucket

DepShield Badge

Bitbucket Server Hook to trigger TeamCity builds

Req: Min TeamCity 8.x, BitbucketServer 5.x Download last release from MarketPlace MarketPlace!

Features

The plugin works in 2 different ways, the default will request a VCS root to check for changes. In this case, all build configurations that use the VCS root will be triggered.

The second method provides more control and it will trigger only the selected build configurations and selected branch. This is the default.

It adds a "build and test" menu to pull request so user can extend their own workflows with remote triggers of tests and remote triggers of build systems. Additionally provides information about:

  • time to start build, if found in queue
  • manual trigger build
  • detection of invalid conditions for the pull request, for example if TeamCity has crashed the hook will warn if TeamCity has not build the last commit in the branch.
  • links directly to the builds
  • information about steps running and error failures and complete percentage

TeamCity Configuration

  • Create a vcs root and set the checking interval to a random high value to improve performance.
  • If you use build trigger, disable all vcs triggers in TeamCity.
  • Save the VCS root id to be use in bitbucket configuration if you use VCS configuration
  • Ensure default branch is also part of the branch specicication, so that the branch is displayed instead of <default>

Branch capture considerations

In TeamCity, when using captures () TeamCity will display only the catpured value inside. So when defining regular expressions be sure the same approach is followed in Bitbucket side. For example in TeamCity

 +:refs/heads/feature/(*)
 +:refs/heads/bugfix/(*)

You can use RegEx

 feature/(.)
 bugfix/(.)

Default branch

In case you use only default branch in teamcity, for example refs/heads/master the reg expression in teamcity will need to capture the all (refs/heads/master). This is supported only for Teamcity 2017 and above. Triggering default branch in previous versions is deprecated.

Bitbucket configuration

Connection Settings

  • set servers address, username and password. press test and save connection
  • set one of the VCS roots to the value retrieved in previous section
  • enable debug mode

Debug

Check the catalina log for logs error messages like:

  • [TeamCityTriggerHook] Trigger builds for branch: feature-a
  • [TeamCityTriggerHook] Trigger BuildId: BuildConfigId
  • [TeamCityTriggerHook] Trigger BuildId: BuildConfigId2

Listeners Configuration

Basic Configuration

Create basic listeners that trigger TeamCity builds:

  • RegEx: Regular expression to match and to capture branch to trigger. Make sure default branch is part of branch definition in TeamCity
  • Target: Either build configuration ID or VCS root Id. If build id is selected on Type then the hook will trigger manually builds, otherwise it will ask TeamCity to check for changes. build type reacts immediately.
  • Type: either build or vcs. see Target in previous bullet

Advanced Configuration

Provides additional options to control the builds (applies only to Type: Build)

  • Cancel Running Builds: User typically pushes multiple commits, for example if running builds in feature branch, you might not need TeamCity to build all commits. Enable this option to cancel all running builds and add a new one to queue.
  • Trigger on Pull Request: This ensures that only after a pull request is created then the build is triggered. You could achieve a similar behavior by triggering defining branch specification for pr/* however this brings the display of these branches in TeamCity side and its not easy to track to what branch the pr belongs 2. pr/* are not found in the Bitbucket ui, so it sounds good not to use these branch defintions in TeamCity either.

Enabling Test builds and External triggers

The hook provides the possibility to trigger tests and other build configurations when build dependencies are met. Something like build chains in TeamCity, but the hook controls when things can be triggered.

  • Target: this is the build that user will be able to trigger once Target in Basic configuration is green
  • Type: build, rest, or newtab
    1. rest and newtab: will create a external build tabs in the build and test menu. A button per hook will be created so user can trigger. NewTab will open a new tab with the defined target.
    2. build: is a teamcity build id and will enable tests tab in build and test menu.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].