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

Setting a node temporarily offline removes ENV settings

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • gradle-plugin
    • Windows 10, Jenkins 2.392, gradle-plugin 2.3
    • gradle-plugin 2.3.2

      We have a Jenkins node configured with an environment variable (MAVEN_OPTS).

      Everytime we set this node offline temporarily (using the markOffline function in Jenkins UI), and then restart the machines, after the restart, the environment variable is still there, but the value is empty. I'm not sure if it's the slave or the server reboot which is causing the issue, I can try to find out if it helps.

      Configuration History plugin shows that there is an Entry with source SYSTEM, which contains two Changes - the marking as offline (<temporaryOfflineCause class="hudson.slaves.OfflineCause$UserCause">), and the removal of this ENV value. If I don't restart while the node is set to offline, there is no issue. If I set it back online, then restart, there is no issue either.

      Please let me know what else information you need, it's probably a complex to follow issue.

      The false behavior started after the last update of jenkins core and our plugins. It's been correct before. It's less than two weeks old.

          [JENKINS-70692] Setting a node temporarily offline removes ENV settings

          Jens Beyer created issue -
          Jens Beyer made changes -
          Description Original: We have a Jenkins node configured with an environment variable.

          Everytime we set this node offline temporarily (using the markOffline function in Jenkins UI), and then restart the machines (I'm not sure if it's the slave or the server), after the restart, the environment variable is still there, but the value is empty.

          Configuration History plugin shows that there is an Entry with source SYSTEM, which contains two Changes - the marking as offline (<temporaryOfflineCause class="hudson.slaves.OfflineCause$UserCause">), and the removal of this ENV value. If I don't restart while the node is set to offline, there is no issue.

          Please let me know what else information you need, it's probably a complex to follow issue.

          The false behavior started after the last update of jenkins core and our plugins. It's been correct before. It's less than two weeks old.
          New: We have a Jenkins node configured with an environment variable.

          Everytime we set this node offline temporarily (using the markOffline function in Jenkins UI), and then restart the machines, after the restart, the environment variable is still there, but the value is empty. I'm not sure if it's the slave or the server reboot which is causing the issue, I can try to find out if it helps.

          Configuration History plugin shows that there is an Entry with source SYSTEM, which contains two Changes - the marking as offline (<temporaryOfflineCause class="hudson.slaves.OfflineCause$UserCause">), and the removal of this ENV value. If I don't restart while the node is set to offline, there is no issue.

          Please let me know what else information you need, it's probably a complex to follow issue.

          The false behavior started after the last update of jenkins core and our plugins. It's been correct before. It's less than two weeks old.

          Jens Beyer added a comment - - edited

          Could be related to JENKINS-69922

          Very likely related to JENKINS-70663

          Jens Beyer added a comment - - edited Could be related to JENKINS-69922 Very likely related to JENKINS-70663
          Jens Beyer made changes -
          Description Original: We have a Jenkins node configured with an environment variable.

          Everytime we set this node offline temporarily (using the markOffline function in Jenkins UI), and then restart the machines, after the restart, the environment variable is still there, but the value is empty. I'm not sure if it's the slave or the server reboot which is causing the issue, I can try to find out if it helps.

          Configuration History plugin shows that there is an Entry with source SYSTEM, which contains two Changes - the marking as offline (<temporaryOfflineCause class="hudson.slaves.OfflineCause$UserCause">), and the removal of this ENV value. If I don't restart while the node is set to offline, there is no issue.

          Please let me know what else information you need, it's probably a complex to follow issue.

          The false behavior started after the last update of jenkins core and our plugins. It's been correct before. It's less than two weeks old.
          New: We have a Jenkins node configured with an environment variable.

          Everytime we set this node offline temporarily (using the markOffline function in Jenkins UI), and then restart the machines, after the restart, the environment variable is still there, but the value is empty. I'm not sure if it's the slave or the server reboot which is causing the issue, I can try to find out if it helps.

          Configuration History plugin shows that there is an Entry with source SYSTEM, which contains two Changes - the marking as offline (<temporaryOfflineCause class="hudson.slaves.OfflineCause$UserCause">), and the removal of this ENV value. If I don't restart while the node is set to offline, there is no issue. If I set it back online, then restart, there is no issue either.

          Please let me know what else information you need, it's probably a complex to follow issue.

          The false behavior started after the last update of jenkins core and our plugins. It's been correct before. It's less than two weeks old.
          Jens Beyer made changes -
          Summary Original: Setting a node offline temporarily removes ENV settings New: Setting a node temporarily offline removes ENV settings
          Jens Beyer made changes -
          Description Original: We have a Jenkins node configured with an environment variable.

          Everytime we set this node offline temporarily (using the markOffline function in Jenkins UI), and then restart the machines, after the restart, the environment variable is still there, but the value is empty. I'm not sure if it's the slave or the server reboot which is causing the issue, I can try to find out if it helps.

          Configuration History plugin shows that there is an Entry with source SYSTEM, which contains two Changes - the marking as offline (<temporaryOfflineCause class="hudson.slaves.OfflineCause$UserCause">), and the removal of this ENV value. If I don't restart while the node is set to offline, there is no issue. If I set it back online, then restart, there is no issue either.

          Please let me know what else information you need, it's probably a complex to follow issue.

          The false behavior started after the last update of jenkins core and our plugins. It's been correct before. It's less than two weeks old.
          New: We have a Jenkins node configured with an environment variable (MAVEN_OPTS).

          Everytime we set this node offline temporarily (using the markOffline function in Jenkins UI), and then restart the machines, after the restart, the environment variable is still there, but the value is empty. I'm not sure if it's the slave or the server reboot which is causing the issue, I can try to find out if it helps.

          Configuration History plugin shows that there is an Entry with source SYSTEM, which contains two Changes - the marking as offline (<temporaryOfflineCause class="hudson.slaves.OfflineCause$UserCause">), and the removal of this ENV value. If I don't restart while the node is set to offline, there is no issue. If I set it back online, then restart, there is no issue either.

          Please let me know what else information you need, it's probably a complex to follow issue.

          The false behavior started after the last update of jenkins core and our plugins. It's been correct before. It's less than two weeks old.

          Basil Crow added a comment -

          The false behavior started after the last update of jenkins core and our plugins. It's been correct before. It's less than two weeks old.

          What are the steps to reproduce the problem from scratch? What is the last weekly release in which the scenario passes, and what is the first weekly release in which the scenario fails?

          Basil Crow added a comment - The false behavior started after the last update of jenkins core and our plugins. It's been correct before. It's less than two weeks old. What are the steps to reproduce the problem from scratch? What is the last weekly release in which the scenario passes, and what is the first weekly release in which the scenario fails?
          Basil Crow made changes -
          Labels New: regression
          Jens Beyer made changes -
          Component/s New: gradle-plugin [ 15547 ]
          Component/s Original: core [ 15593 ]
          Jens Beyer made changes -
          Environment Original: Windows 10, Jenkins 2.392 New: Windows 10, Jenkins 2.392, gradle-plugin 2.3

            avenderov Alexey Venderov
            beyerj Jens Beyer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: