[JIRA] (JENKINS-60284) build_agent_name not working with Global Listener

4 views
Skip to first unread message

andy.taylor@zeetta.com (JIRA)

unread,
Nov 26, 2019, 8:17:03 AM11/26/19
to jenkinsc...@googlegroups.com
Andy Taylor created an issue
 
Jenkins / Bug JENKINS-60284
build_agent_name not working with Global Listener
Issue Type: Bug Bug
Assignee: Aleksi Simell
Components: influxdb-plugin
Created: 2019-11-26 13:16
Environment: Jenkins 2.190.1
InfluxDB Plugin 2.0.2
Priority: Minor Minor
Reporter: Andy Taylor

I just tried out the Global Listener feature and it seems to work great, except build_agent_name is always blank. This works fine for me if I disable Global Listener and use influxDbPublisher() in my Jenkinsfile so at least there is a workaround. I'm guessing this has something to do with the global listener not seeing the NODE_NAME environment variable.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

andy.taylor@zeetta.com (JIRA)

unread,
Nov 26, 2019, 9:38:03 AM11/26/19
to jenkinsc...@googlegroups.com
Andy Taylor commented on Bug JENKINS-60284
 
Re: build_agent_name not working with Global Listener

Quick update: I've noticed that build_agent_name is correctly set to 'master' when a job is running on the master, but if a job runs on any of the slaves it is null.

Reply all
Reply to author
Forward
0 new messages