you can't, you can only do it with pipeline jobs

On Mon, Oct 29, 2018 at 1:56 PM 徐志远 <xzy931...@gmail.com> wrote:

> I set up a Container Template as follows, and want to execute shell in it
>
>
> [image: Untitled picture.png]
>
>
>
> but when I use label "pyenv" in freestyle job and use python, I got error
> message:
>
> + whoami
>
> jenkins
>
> + python -V
>
> python: command not found
>
> + pip install python-jenkins
>
> line 17: pip: command not found
>
>
>
> it seems the script run in "jnlp container", instead of "python
> container".
>
>
>
> I searched a lot and found "container" argument could be defined in
> "pipeline", but how can I specify to build in certain container in
> freestyle job?
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/253c79b2-bc5a-4b9d-ae51-f079d9fb0d37%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/253c79b2-bc5a-4b9d-ae51-f079d9fb0d37%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6Mw5Ymc3q%3DAS1f1ObLWqjfib9oJdLxMvpposhawV1wxyA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to