-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
tfs-plugin 5.126.0, Jenkins 2.89.4, Oracle JDK 1.8.0_144-b01/amd64, Windows Server 2008 R2/amd64
After job (which uses TFS plugin) completion we see following errors in jenkins.err.log:
[timestamp omitted] hudson.plugins.tfs.JenkinsEventNotifier getApiJson
WARNING: ERROR: getApiJson: (url=job/ZZPILPXI-SWRelayCount-Tests-Run-LinuxARM/63/) failed due to Http error #403
Fortunately these errors seems to be harmless to us.
Possible cause
We have configured Jenkins Security to "Logged-in users can do anything" mode without "Allow anonymous read access" (so user must be logged-in to access anything in Jenkins).
It seems that the getApiJson is calling Jenkins without needed authentication info in such case.
Little more detail from Jenkins master's access log:
[ip/date omitted] "GET /job/TfsPluginBugTrigger/2/api/json HTTP/1.1" 403 883 "-" "Jenkins-Self"
(Job name changed but it does not matter.)