You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only way I achieved this is to use the Configuration As Code plugin, which let you use Yaml to configure Jenkins.
I have the feeling that you would like to call different templates based on the job being executed, my workaround for that is to declare multiple templates in the agentTemplates section of the CasC and call the one I need in the Jenkinsfile.
Not the perfect answer by any mean but it might help.
I would like to define the templates from code, directly in the Jenkinsfile or from yaml.
Just like the podTemplate statement in the Kubernetes plugin:
https://github.com/jenkinsci/kubernetes-plugin
The text was updated successfully, but these errors were encountered: