简体   繁体   中英

Jenkins doesn't trigger a TFS change

I've recently installed TFS plugins version 2.5.1 on Jenkins v.2.22.

I successfully configured Team Project Collection URL (Test connection works) and Project Path .

I also marked this build trigger:

"Build when a change is pushed to TFS/Team Services"

For some reason after I check-in some changes under the mentioned Project Path - nothing happens.

Build now option works fine.

TFS/Team Services hook log mentions that Polling has not run yet.

Can someone explain how to solve this issue ?

First, please update your TFS plugin version to latest. Also check Team Foundation Server polling log to see if there's some related info.

If you are going to trigger Jenkins with VSTS, there's also some configuration in VSTS:

  1. Enable alternate credentials in your Visual Studio Team Services profile. Be sure to set a secondary user name because you won't be able to use your email account to connect Visual Studio Team Services to Jenkins.
  2. Go to your team project's administration page. On the Service Hooks tab, create a subscription . Add Jenkins.
  3. Pick the event from Visual Studio Team Services that you want to trigger a Jenkins build.
  4. Configure the action to take in Jenkins. Now, when that event occurs in Visual Studio Team Services, your Jenkins build will be triggered.

More details please check this tutorial: Trigger Jenkins from Visual Studio Team Services

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM