I am somewhat embarrassed to post this but I found my problem, someone 
before me, I inherited this Jenkins setup set the shell executable path to 
"C:\Windows\system32\cmd.exe" I never thought to check, however without 
your help it would not have a given me the hint to check where Jenkins sets 
it shell executable.

No I know in the future, that is should be blank if you want to use both 
Linux and Windows Slaves from a Master...

Thanks for the nudge in the right direction.

Greg


On Monday, May 20, 2019 at 11:39:54 AM UTC-4, Mark Waite wrote:
>
> If you'd like labels assigned automatically to your agents, install the 
> "Platform 
> Labeler Plugin <https://plugins.jenkins.io/platformlabeler>".
>
> If the labels assigned by the platform labeler plugin are not generic 
> enough, install the "Implied Labels Plugin 
> <https://plugins.jenkins.io/implied-labels>" and you can define that all 
> agents with the label "CentOS" should also be assigned the label "linux" 
> (as an example).  It simplifies the management of labels.
>
> If you'd like an example implied labels definition for various Linux 
> operating systems, I have one in my docker repository 
> <https://github.com/MarkEWaite/docker-lfs/blob/4a9773f22066c9db6fa7841fcbcfb14dacd26918/ref/org.jenkinsci.plugins.impliedlabels.Config.xml#L8>
> .
>
> On Mon, May 20, 2019 at 6:18 AM Bob TheBuilder <[email protected] 
> <javascript:>> wrote:
>
>> Hi Gregory,
>>
>> what kind of Jenkinsfile do you use? Scripted or declarative?
>> In scripted, you would enclose your sh in a 
>>
>>> node('linux_label') {
>>> sh "your shell script"
>>> }
>>
>>
>> , on declarative, use 
>> stage ("Run on Linux only") {
>>    agent { label "linux_label" }
>>    steps {
>>    script {
>>      sh "you shell script"
>>    }
>> }
>>
>>  with agent('linux_label'). Linux label would be a label you attached to 
>> the Linux slave/node
>>
>> -- 
>> 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 [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/e81a95b4-d8a4-4fa0-931a-f314e9616796%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/e81a95b4-d8a4-4fa0-931a-f314e9616796%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Thanks!
> Mark Waite
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/66af3752-0825-4f6b-8550-0fdd7fa61115%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to