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.
For more options, visit https://groups.google.com/d/optout.