Have you tried?

On Fri, Aug 11, 2017, 12:14 WANG, YAN-HONG <[email protected]> wrote:

> Hello all,
>
> I saw the tutorial with jenkins-kubernetes-plugin.
> https://github.com/jenkinsci/kubernetes-plugin
>
> The examples of containerTemplate are all created in the *beginning *of
> groovy file.
> And the *image name with version number *are *fixed*, too.
> Example like this below.
>
> containerTemplate(
>     name: 'maven',
>     image: 'maven:3.3.9-jdk-8-alpine',
>     ttyEnabled: true,
>     command: 'cat'
> )
>
> Is that possible or some *syntax *can implement container created during 
> *execution
> of pipeline*?
> So this container could also run in *the same Pod*.
> Maybe the syntax looks like below.
>
> //////////////////////////////////////////////////////////////////////
>
> ......
> ......
>
> containerTemplate(
>     name: 'maven',
>     image: 'myregistry:5000/*$ImageName*:*$VersionNumber*',
>     ttyEnabled: true,
>     command: 'cat'
> )
>
> ......
> ......
>
> //////////////////////////////////////////////////////////////////////
>
> Thanks very much.
>
> BR
> Hong
>
> --
> 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/CADLWyO3katWvkMezE80XJ8u%3DFna_QW5%2BjWT12PYa%3Dar_BUgAxQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CADLWyO3katWvkMezE80XJ8u%3DFna_QW5%2BjWT12PYa%3Dar_BUgAxQ%40mail.gmail.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6P8rJ2kLDRQMaqugKeuPJSkeFR6Uyrpac%3Diz7h3bS6%3DPQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to