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

Kubernetes Plugin , Tool Location overwrites not preserved

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • kubernetes-plugin
    • Jenkins LTS 2.46.2 Docker Container (from docker hub)
      Latest Kubernetes Plugin

      In the Cloud configuration , you can overwrite the Tool Locations, this works, but is not preserved when you change another setting e.g the Volume Type. 

      You always need to refill the data to  have the tools overwritten

          [JENKINS-44285] Kubernetes Plugin , Tool Location overwrites not preserved

          Hi Florian, this issue seems to be for the kubernetes-plugin and not for the kubernetes-ci-plugin

          Guillermo Sanchez Urien added a comment - Hi Florian, this issue seems to be for the kubernetes-plugin and not for the kubernetes-ci-plugin

          Florian Koch added a comment -

          Hi,

          yes, you are right

           

          regards Florian

          Florian Koch added a comment - Hi, yes, you are right   regards Florian

          Pavel Druyan added a comment -

          Hi,

          Is there any ETA for this issue to be fixed.

          Thanks

          Pavel Druyan added a comment - Hi, Is there any ETA for this issue to be fixed. Thanks

          It seems that nothing is saved at all when you add tool locations... At least nothing appears in the config.xml file. 

          Benjamin Herbert added a comment - It seems that nothing is saved at all when you add tool locations... At least nothing appears in the config.xml file. 

          Looking at the code at org.csanchez.jenkins.plugins.kubernetes.PodTemplate I assume that it's due to the fact that nodeProperties are marked as transient unless there is some magic going on which should save the configuration.

          private transient List<ToolLocationNodeProperty> nodeProperties;

          Is this intended?

          Torsten Walter added a comment - Looking at the code at org.csanchez.jenkins.plugins.kubernetes.PodTemplate I assume that it's due to the fact that nodeProperties are marked as transient unless there is some magic going on which should save the configuration. private transient List<ToolLocationNodeProperty> nodeProperties; Is this intended?

          Aytunc BEKEN added a comment -

          Hi

          Is there any news on this issue ? I do not know plugin development but if is there anything to help let me know ?

          Aytunc BEKEN added a comment - Hi Is there any news on this issue ? I do not know plugin development but if is there anything to help let me know ?

          Aytunc BEKEN added a comment -

          Hi,

          I did manage to find bug and fix it. I will open a pull request for this.

          Aytunc BEKEN added a comment - Hi, I did manage to find bug and fix it. I will open a pull request for this.

          Aytunc BEKEN added a comment -

          Opened Pull Request. #320

          Aytunc BEKEN added a comment - Opened Pull Request. #320

          Carlos Sanchez added a comment - actually https://github.com/jenkinsci/kubernetes-plugin/pull/318

          Aytunc BEKEN added a comment -

          Aytunc BEKEN added a comment - Opened pull request #351 https://github.com/jenkinsci/kubernetes-plugin/pull/351

            aytuncbeken Aytunc BEKEN
            f0 Florian Koch
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: