Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-41109

Kubernetes plugin defaults to wrong container

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • kubernetes-plugin
    • None

      With the recent changes to auto-inject a jnlp container into the pod template, Jenkinsfiles which do not explicitly indicate which container to use are broken.

      These jenkinsfiles previously worked correctly when used with a podtemplate which defined a container image which provided both the tools the jenkinsfile needed(eg maven) and also started up jnlp.

      Now that the plugin is adding its own jnlp container, the jenkinsfile commands are run in the new container which does not have maven(for example) and the jenkinsfile fails.

      I think the plugin should default to running the commands in the container defined by the user's explicit configuration, not the container being added implicitly by the plugin, the current behavior breaks backwards compatibility for existing configurations/jenkinsfiles.

            csanchez Carlos Sanchez
            bparees Ben Parees
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: