[JIRA] (JENKINS-61729) Reload Configuration from Disk does not work

2 views
Skip to first unread message

it@mockies.de (JIRA)

unread,
Mar 28, 2020, 6:49:03 PM3/28/20
to jenkinsc...@googlegroups.com
Christoph Vogtländer created an issue
 
Jenkins / Bug JENKINS-61729
Reload Configuration from Disk does not work
Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 2020-03-28 22:48
Environment: Jenkins 2.204.5
Priority: Major Major
Reporter: Christoph Vogtländer

Using "Manage" -> "Reload Configuration from Disk" does not reload the Repository URL configured for a Pipeline script from SCM when using Subversion.

E.g., after changing "https://server/svn/JenkinsWorkflow/oldLib/trunk" to "https://server/svn/JenkinsWorkflow/newLib/trunk" in config.xml on disk and then using "Reload Configuration from Disk" the job configuration is still using "oldLib" (after Jenkins stated for a while that it is reloading the configuration).

The old path is still shown at the configure page of the job and when running a build it tries to load the Jenkinsfile from the old path. The build will fail with (in my case the lib has been renamed, "oldLib" does not exist anymore)

org.tmatesoft.svn.core.SVNException: svn: E160013: '/svn/JenkinsWorkflow/!svn/bc/1193/oldLib/trunk/JenkinsfileCI' path not found: 404 Not Found (https://server)

Restarting Jenkins solves the problem.

 

Changed parts in config.xml:

<definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workfl...@2.74">
    <scm class="hudson.scm.SubversionSCM" plugin="subve...@2.12.2">
      <locations>
        <hudson.scm.SubversionSCM_-ModuleLocation>
          <remote>https://server/svn/JenkinsWorkflow/oldLib/trunk</remote>
          <credentialsId>ID</credentialsId>
          <local>.</local>
          <depthOption>infinity</depthOption>
          <ignoreExternalsOption>true</ignoreExternalsOption>
          <cancelProcessOnExternalsFail>true</cancelProcessOnExternalsFail>
        </hudson.scm.SubversionSCM_-ModuleLocation>
      </locations>
      <excludedRegions></excludedRegions>
      <includedRegions></includedRegions>
      <excludedUsers></excludedUsers>
      <excludedRevprop></excludedRevprop>
      <excludedCommitMessages></excludedCommitMessages>
      <workspaceUpdater class="hudson.scm.subversion.UpdateUpdater"/>
      <ignoreDirPropChanges>false</ignoreDirPropChanges>
      <filterChangelog>false</filterChangelog>
      <quietOperation>true</quietOperation>
    </scm>
    <scriptPath>JenkinsfileCI</scriptPath>
    <lightweight>true</lightweight>
  </definition>

Changed to:

<definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workfl...@2.74">
    <scm class="hudson.scm.SubversionSCM" plugin="subve...@2.12.2">
      <locations>
        <hudson.scm.SubversionSCM_-ModuleLocation>
          <remote>https://server/svn/JenkinsWorkflow/newLib/trunk</remote>
          <credentialsId>ID</credentialsId>
          <local>.</local>
          <depthOption>infinity</depthOption>
          <ignoreExternalsOption>true</ignoreExternalsOption>
          <cancelProcessOnExternalsFail>true</cancelProcessOnExternalsFail>
        </hudson.scm.SubversionSCM_-ModuleLocation>
      </locations>
      <excludedRegions></excludedRegions>
      <includedRegions></includedRegions>
      <excludedUsers></excludedUsers>
      <excludedRevprop></excludedRevprop>
      <excludedCommitMessages></excludedCommitMessages>
      <workspaceUpdater class="hudson.scm.subversion.UpdateUpdater"/>
      <ignoreDirPropChanges>false</ignoreDirPropChanges>
      <filterChangelog>false</filterChangelog>
      <quietOperation>true</quietOperation>
    </scm>
    <scriptPath>JenkinsfileCI</scriptPath>
    <lightweight>true</lightweight>
  </definition>

 

Might be related to JENKINS-30870

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages