Rafael Colucci
Rafael Colucci

Reputation: 6078

TFS, Jenkins and how to update work items with build numbers

We are using TFS and the TFS Build Service. We are considering to migrate the Build service to Jenkins but we came across some issues. According to this site, there are some things that do not work very well with the TFS and Jenkins plugins. All of them we use a lot:

Is this still true? We have this scenario:

Is there any way to make Jenkins behave and do what TFS build service does?

Upvotes: 2

Views: 1547

Answers (2)

xtreampb
xtreampb

Reputation: 562

I have a VSTS build definition for one of our projects that requires jenkins to build, but we still have all our other products using VSTS natively. To maintain consistency, this build definition triggers a jenkins build. We configured the build definition to not sync code as jenkins will download it (save time) and not to publish the artifacts back to the agent (i have another script for that found here). This allows developers to continue to use git as normal, and the build/release process is consistent with our other products. Along with task tracking and such.

Upvotes: 0

Giulio Vian
Giulio Vian

Reputation: 8353

Another option is to mix the two using dummy builds on the TFS side that set the records straight and kick-off the Jenkins' builds. Some hints How to trigger Jenkins builds remotely and to pass parameters and “Fake” a TFS Build.

This approach requires a bit of effort but has many advantages:

  • No big-bang, use Jenkins opportunistically
  • Can continue using existing builds
  • Having a build identifier in TFS allows you an overall monitoring and to use the Test features

Upvotes: 2

Related Questions