TopicAssociation field not set after Jenkins restart

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: gerrit-trigger-plugin
    • Environment:
      Gerrit Trigger Plugin 2.38
      Jenkins Environment 2.361.4
    • Fix released in vers. 2.39

       
      In the job configuration if 

      TopicAssociation

      is enabled and Jenkins is restarted the option is not set anymore.
      The reason is that the

       readResolve() 

      function checks the config value

       private transient boolean enableTopicAssociation = Config.DEFAULT_ENABLE_TOPIC_ASSOCIATION; 

      (GerritTrigger.java) which is always false. Since this condition is always the case the topicAssociation value in the GerritTrigger class is set to "null" (not set).

       

            Assignee:
            ckreisl
            Reporter:
            ckreisl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: