Is there a token for build node (slave)

30 views
Skip to first unread message

Ginga, Dick

unread,
Feb 3, 2015, 4:22:10 PM2/3/15
to jenkins...@googlegroups.com

When using a label to group slaves, is there a global token that tells which actual slave the job landed on?

 

Dick Ginga, Informatics R&D

PerkinElmer Inc. | For the Better
HUMAN HEALTH | ENVIRONMENTAL HEALTH
940 Winter Street, Waltham MA 02451

 

dick.ginga@perkinelmer.com  

Mobile – 508-847-1434

Office – 781-663-6947

 

Ginga, Dick

unread,
Feb 3, 2015, 4:35:43 PM2/3/15
to jenkins...@googlegroups.com

Sorry folks, I just found it and it is NODE_NAME. J

Slide

unread,
Feb 3, 2015, 4:37:24 PM2/3/15
to jenkins...@googlegroups.com
Be careful with this, if your stuff ends up running on master, it may or may not be set...it was fixed at one point and then got broken again. I don't know the current status.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4F00E3%40AMERMBX02.PERKINELMER.NET.
For more options, visit https://groups.google.com/d/optout.

Ginga, Dick

unread,
Feb 3, 2015, 4:39:01 PM2/3/15
to jenkins...@googlegroups.com

Ginga, Dick

unread,
Feb 3, 2015, 4:42:36 PM2/3/15
to jenkins...@googlegroups.com

Slide, actually I will be using this in mostly Build Flow projects, can I get this name from a “build” field like build.number?

 

From: Ginga, Dick
Sent: Tuesday, February 03, 2015 4:39 PM
To: jenkins...@googlegroups.com
Subject: RE: Is there a token for build node (slave)

 

Thanks, Slide.

 


Sent: Tuesday, February 03, 2015 4:37 PM
To: jenkins...@googlegroups.com

Ginga, Dick

unread,
Feb 3, 2015, 4:57:13 PM2/3/15
to jenkins...@googlegroups.com

Sorry again folks, just found the getBuiltOnStr method.

Daniel Beck

unread,
Feb 3, 2015, 5:32:31 PM2/3/15
to jenkins...@googlegroups.com
Isn't it just whether env-inject is installed that breaks this?

On 03.02.2015, at 22:37, Slide <slide...@gmail.com> wrote:

> Be careful with this, if your stuff ends up running on master, it may or may not be set...it was fixed at one point and then got broken again. I don't know the current status.
>
> On Tue Feb 03 2015 at 2:35:40 PM Ginga, Dick <Dick....@perkinelmer.com> wrote:
> Sorry folks, I just found it and it is NODE_NAME. J
>
>
>
> From: Ginga, Dick
> Sent: Tuesday, February 03, 2015 4:22 PM
> To: jenkins...@googlegroups.com
> Subject: Is there a token for build node (slave)
>
>
>
> When using a label to group slaves, is there a global token that tells which actual slave the job landed on?
>
>
>
> Dick Ginga, Informatics R&D
>
> PerkinElmer Inc. | For the Better
> HUMAN HEALTH | ENVIRONMENTAL HEALTH
> 940 Winter Street, Waltham MA 02451
>
>
>
> dick....@perkinelmer.com
>
> Mobile – 508-847-1434
>
> Office – 781-663-6947
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4F00E3%40AMERMBX02.PERKINELMER.NET.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVeQTQ86pNcwYSqL4m3O5vVg1D7qCt_gONKcsJCY1siY6w%40mail.gmail.com.

Slide

unread,
Feb 3, 2015, 5:33:33 PM2/3/15
to jenkins...@googlegroups.com
I'm not sure, I hadn't looked into it. I just check in my scripts if NODE_NAME is empty and if so, assume master.

On Tue Feb 03 2015 at 3:32:28 PM Daniel Beck <m...@beckweb.net> wrote:
Isn't it just whether env-inject is installed that breaks this?

On 03.02.2015, at 22:37, Slide <slide...@gmail.com> wrote:

> Be careful with this, if your stuff ends up running on master, it may or may not be set...it was fixed at one point and then got broken again. I don't know the current status.
>
> On Tue Feb 03 2015 at 2:35:40 PM Ginga, Dick <Dick....@perkinelmer.com> wrote:
> Sorry folks, I just found it and it is NODE_NAME. J
>
>
>
> From: Ginga, Dick
> Sent: Tuesday, February 03, 2015 4:22 PM
> To: jenkinsci-users@googlegroups.com
> Subject: Is there a token for build node (slave)
>
>
>
> When using a label to group slaves, is there a global token that tells which actual slave the job landed on?
>
>
>
> Dick Ginga, Informatics R&D
>
> PerkinElmer Inc. | For the Better
> HUMAN HEALTH | ENVIRONMENTAL HEALTH
> 940 Winter Street, Waltham MA 02451
>
>
>
> dick....@perkinelmer.com
>
> Mobile – 508-847-1434
>
> Office – 781-663-6947
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.

> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4F00E3%40AMERMBX02.PERKINELMER.NET.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3ACA943D-0E68-4750-A44C-374416B067B3%40beckweb.net.

Daniel Beck

unread,
Feb 3, 2015, 5:36:08 PM2/3/15
to jenkins...@googlegroups.com
There it is: https://issues.jenkins-ci.org/browse/JENKINS-19222

On 03.02.2015, at 23:33, Slide <slide...@gmail.com> wrote:

> I'm not sure, I hadn't looked into it. I just check in my scripts if NODE_NAME is empty and if so, assume master.
>
> On Tue Feb 03 2015 at 3:32:28 PM Daniel Beck <m...@beckweb.net> wrote:
> Isn't it just whether env-inject is installed that breaks this?
>
> On 03.02.2015, at 22:37, Slide <slide...@gmail.com> wrote:
>
> > Be careful with this, if your stuff ends up running on master, it may or may not be set...it was fixed at one point and then got broken again. I don't know the current status.
> >
> > On Tue Feb 03 2015 at 2:35:40 PM Ginga, Dick <Dick....@perkinelmer.com> wrote:
> > Sorry folks, I just found it and it is NODE_NAME. J
> >
> >
> >
> > From: Ginga, Dick
> > Sent: Tuesday, February 03, 2015 4:22 PM
> > To: jenkins...@googlegroups.com
> > Subject: Is there a token for build node (slave)
> >
> >
> >
> > When using a label to group slaves, is there a global token that tells which actual slave the job landed on?
> >
> >
> >
> > Dick Ginga, Informatics R&D
> >
> > PerkinElmer Inc. | For the Better
> > HUMAN HEALTH | ENVIRONMENTAL HEALTH
> > 940 Winter Street, Waltham MA 02451
> >
> >
> >
> > dick....@perkinelmer.com
> >
> > Mobile – 508-847-1434
> >
> > Office – 781-663-6947
> >
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4F00E3%40AMERMBX02.PERKINELMER.NET.
> > For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVeQTQ86pNcwYSqL4m3O5vVg1D7qCt_gONKcsJCY1siY6w%40mail.gmail.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcxPboVYN4vypOSDyfxFjXiXoZA4P%2BBTuzHZt3K48%3DbWg%40mail.gmail.com.

Slide

unread,
Feb 3, 2015, 6:24:49 PM2/3/15
to jenkins...@googlegroups.com
I updated the issue with my findings.

On Tue Feb 03 2015 at 3:36:06 PM Daniel Beck <m...@beckweb.net> wrote:
There it is: https://issues.jenkins-ci.org/browse/JENKINS-19222

On 03.02.2015, at 23:33, Slide <slide...@gmail.com> wrote:

> I'm not sure, I hadn't looked into it. I just check in my scripts if NODE_NAME is empty and if so, assume master.
>
> On Tue Feb 03 2015 at 3:32:28 PM Daniel Beck <m...@beckweb.net> wrote:
> Isn't it just whether env-inject is installed that breaks this?
>
> On 03.02.2015, at 22:37, Slide <slide...@gmail.com> wrote:
>
> > Be careful with this, if your stuff ends up running on master, it may or may not be set...it was fixed at one point and then got broken again. I don't know the current status.
> >
> > On Tue Feb 03 2015 at 2:35:40 PM Ginga, Dick <Dick....@perkinelmer.com> wrote:
> > Sorry folks, I just found it and it is NODE_NAME. J
> >
> >
> >
> > From: Ginga, Dick
> > Sent: Tuesday, February 03, 2015 4:22 PM
> > To: jenkinsci-users@googlegroups.com
> > Subject: Is there a token for build node (slave)
> >
> >
> >
> > When using a label to group slaves, is there a global token that tells which actual slave the job landed on?
> >
> >
> >
> > Dick Ginga, Informatics R&D
> >
> > PerkinElmer Inc. | For the Better
> > HUMAN HEALTH | ENVIRONMENTAL HEALTH
> > 940 Winter Street, Waltham MA 02451
> >
> >
> >
> > dick....@perkinelmer.com
> >
> > Mobile – 508-847-1434
> >
> > Office – 781-663-6947
> >
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.

> > To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4F00E3%40AMERMBX02.PERKINELMER.NET.
> > For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.

> > To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVeQTQ86pNcwYSqL4m3O5vVg1D7qCt_gONKcsJCY1siY6w%40mail.gmail.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.

> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3ACA943D-0E68-4750-A44C-374416B067B3%40beckweb.net.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0904D36A-B85A-472F-9838-7C78E3B925EA%40beckweb.net.
Reply all
Reply to author
Forward
0 new messages