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

Jira site configuration lost after a restart

    XMLWordPrintable

Details

    Description

      Modifications to the Jira configuration done in the UI are not persisted on disk but are only kept in memory. After jenkins is restarted, the settings are lost.

      This started with jira-plugin 3.0.7 and it is still a problem in 3.0.8.

       

       

       

      Attachments

        Issue Links

          Activity

            For me:

            <?xml version='1.1' encoding='UTF-8'?>
            <hudson.plugins.jira.JiraGlobalConfiguration plugin="jira@3.0.7">
              <sites class="hudson.util.PersistedList">   
                <hudson.plugins.jira.JiraSite>
                  <url>http://myJira:8080/</url>
                  <alternativeUrl>myJira:8080/</alternativeUrl>
                  <useHTTPAuth>false</useHTTPAuth>
                  <credentialsId>BuildUser</credentialsId>
                  <supportsWikiStyleComment>false</supportsWikiStyleComment>
                  <recordScmChanges>true</recordScmChanges>
                  <disableChangelogAnnotations>false</disableChangelogAnnotations>
                  <userPattern>(JOB+-[1-9][0-9]*)([^.]|\.[^0-9]|\.$|$)</userPattern>
                  <updateJiraIssueForAllStatus>false</updateJiraIssueForAllStatus>
                  <timeout>10</timeout>
                  <readTimeout>30</readTimeout>
                  <threadExecutorNumber>10</threadExecutorNumber>
                  <appendChangeTimestamp>true</appendChangeTimestamp>
                  <ioThreadCount>2</ioThreadCount>
                </hudson.plugins.jira.JiraSite>
              </sites>
            </hudson.plugins.jira.JiraGlobalConfiguration>
            

            But as noted: the workaround did not work for me.

            chrisfetz Christoph Fetzer added a comment - For me: <?xml version= '1.1' encoding= 'UTF-8' ?> <hudson.plugins.jira.JiraGlobalConfiguration plugin= "jira@3.0.7" > <sites class= "hudson.util.PersistedList" > <hudson.plugins.jira.JiraSite> <url>http: //myJira:8080/</url> <alternativeUrl>myJira:8080/</alternativeUrl> <useHTTPAuth> false </useHTTPAuth> <credentialsId>BuildUser</credentialsId> <supportsWikiStyleComment> false </supportsWikiStyleComment> <recordScmChanges> true </recordScmChanges> <disableChangelogAnnotations> false </disableChangelogAnnotations> <userPattern>(JOB+-[1-9][0-9]*)([^.]|\.[^0-9]|\.$|$)</userPattern> <updateJiraIssueForAllStatus> false </updateJiraIssueForAllStatus> <timeout>10</timeout> <readTimeout>30</readTimeout> <threadExecutorNumber>10</threadExecutorNumber> <appendChangeTimestamp> true </appendChangeTimestamp> <ioThreadCount>2</ioThreadCount> </hudson.plugins.jira.JiraSite> </sites> </hudson.plugins.jira.JiraGlobalConfiguration> But as noted: the workaround did not work for me.
            gamentek Rob Brunelle added a comment -

            Thank you!  It loaded fine for me after fixing the alternativeUrl value.  I didn't even customize it yet.

            gamentek Rob Brunelle added a comment - Thank you!  It loaded fine for me after fixing the alternativeUrl value.  I didn't even customize it yet.
            aytuncbeken Aytunc BEKEN added a comment - - edited

            Having the same problem. Configuration of the plugin do not persist after restarts only stays in memory.
            Jenkins Version: 2.176.2
            Plugin Version: 3.0.8

            Another symptom is, plugin do not create any config file or do put update config.xml when it's first installation. So every change made on plugin configuration is just in memory.

            aytuncbeken Aytunc BEKEN added a comment - - edited Having the same problem. Configuration of the plugin do not persist after restarts only stays in memory. Jenkins Version: 2.176.2 Plugin Version: 3.0.8 Another symptom is, plugin do not create any config file or do put update config.xml when it's first installation. So every change made on plugin configuration is just in memory.
            olamy Olivier Lamy added a comment - might be because of  https://issues.jenkins-ci.org/browse/JENKINS-52906  
            casz Joseph Petersen (old) added a comment - Fixed in https://github.com/jenkinsci/jira-plugin/pull/195

            People

              olamy Olivier Lamy
              dcendents Daniel Beland
              Votes:
              6 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: