Do you have installed docker command line tool in your Master? you need it, 
check also the PATH of the user that runs Jenkins.

El viernes, 5 de abril de 2019, 15:51:00 (UTC+2), Zero Uno escribió:
>
> Il giorno mer 3 apr 2019 alle ore 16:53 'Andreas Davour' via Jenkins Users 
> <[email protected] <javascript:>> ha scritto:
>  
>
>> I have specified a template, which I can confirm is present on the remote 
>> dockerhost with “docker image ls”. It is built with “FROM 
>> jenkins/ssh-slave” and then a few apt-get lines.
>>
>
> Hi, did you assign a label to the docker agent template?
>  
>
>> pipeline { 
>>
>>      agent { 
>>
>>          docker { 
>>
>>              image "slavetest:latest" 
>>
>>          } 
>>
>>      }
>>
>
> I think you should replace this with:
>
> agent {
>     node {
>         label '<template-label>'
>         }
>     }
>
> So Jenkins should automatically spawn a container on the docker host which 
> contains a template where this label is assigned, and then build the 
> pipeline in the container.
>
> Running on Jenkins <http://10.238.92.69/computer/(master)/> in 
> /var/jenkins_home/jobs/pipetest/workspace
>>
>>
> If "Jenkins" is your master host, then IMHO this job is being run on the 
> master, instead of being run on the remote docker host.
>
> 01
>

-- 
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/f3d5b590-cb72-493e-b3fd-a04a799ccf14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to