Reputation: 687
I can't make Queue Jenkins Job step neither get Jenkins build status nor get Console output.
I hoped to use step([$class: 'TeamCompletedStatusPostBuildAction']) in Jenkins Job, but developers were kind to put this info message:
NOTICE: You selected 'Set build completion status in TFS/Team Services' on your Jenkins job, but this option has no effect when calling the job from the 'Jenkins Queue Job' task in TFS/Team Services.
So how do I force TFS and Jenkins to communicate in this build step?
Note: Service Hook works fine, but I want to get all the reports, progress, work items and notifications in TFS, so I would like to setup a full TFS build.
Upvotes: 2
Views: 838
Reputation: 687
I have found a weird fix to my problem that I can't really explain.
Capture console output and wait for completion only have to be chosen in Queue Jenkins Job step setup, and Capture pipeline output and wait for pipeline completion should be left unchecked.
Upvotes: 1
Reputation: 51183
The Queue Jenkins Job step queues a job on a Jenkins server. Full integration capabilities require installation of the Team Foundation Server Plugin on Jenkins. Make sure you have created Service Endpoint for Jenkins first.
And there is a detailed tutorial of this task in MSDN, you could refer this link: Jenkins Queue Job
Some other links about how to use this task and TFS integration with Jenkins:
Upvotes: 2