Il giorno mer 3 apr 2019 alle ore 16:53 'Andreas Davour' via Jenkins Users <
[email protected]> 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/CAJeoO5rDyx1sp7hi_GuY%2BHnJxq-D_ma4Zb%3DnN9GTLyFzKJVgrQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to