| 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 |