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

Working directory of jnlp container has changed

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • kubernetes-plugin
    • None

      In kubernetes plugin between 1.24.1 and 1.25.4 the working directory of the jnlp template seems to have changed to include the job name. 

      In "Configure Clouds": How do I define the matching working directory in a container template?
      Do I now need to configure the jnlp template that was implicitly defined previously?

      I tried to use ${WORKSPACE} in the template configuration, that did not work.

      Working dir in implicit jnlp template (now):
      /home/jenkins/agent/workspace/<Job-Name>

      Default for other containers (and jnlp previously):
      /home/jenkins/agent

          [JENKINS-62252] Working directory of jnlp container has changed

          chris_mh3 created issue -
          chris_mh3 made changes -
          Description Original: In kubernetes plugin between 1.24.1 and 1.25.4 the working directory of the jnlp template seems to have changed to include the job name. 

          In "Configure Clouds": How do I define the matching working directory in a container template?
          Do I now need to configure the jnlp template that was implicitly defined previously?

          I tried to use ${WORKSPACE} in the template configuration, that did not work.


          Working dir in implicit jnlp template (now):
          /home/jenkins/agent/workspace/<Job-Name>

          Default for container (and jnlp previously):
          /home/jenkins/agent
          New: In kubernetes plugin between 1.24.1 and 1.25.4 the working directory of the jnlp template seems to have changed to include the job name. 

          In "Configure Clouds": How do I define the matching working directory in a container template?
           Do I now need to configure the jnlp template that was implicitly defined previously?

          I tried to use ${WORKSPACE} in the template configuration, that did not work.

          Working dir in implicit jnlp template (now):
           /home/jenkins/agent/workspace/<Job-Name>

          Default for other containers (and jnlp previously):
           /home/jenkins/agent
          chris_mh3 made changes -
          Attachment New: working_dir.png [ 51193 ]

            Unassigned Unassigned
            chris_mh3 chris_mh3
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: