Hi, it’s me again
After migration from 1.60 to 2.30.1 we have an issue with Jenkins plugin. Before migration we were using it (of course old version, for 1.60) and configuration was stored in jenkins.xml file in conf directory. After upgrade there was no Jenkins plugin installed which for sure is normal behaviour. But when I then install it from available plugins and restart scm instance, application doesn’t work and in web browser and logs I see onlyerror message An error occurred during SCM-Manager startup and java stack trace:
sonia.scm.migration.UpdateException: could not execute update for type sonia.scm.jenkins.config.repository.xml to version 2.0.0 in class sonia.scm.update.UpdateEngine$GlobalUpdateStepWrapper
at sonia.scm.update.UpdateEngine.execute(UpdateEngine.java:100)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
at sonia.scm.update.UpdateEngine.update(UpdateEngine.java:88)
…
Caused by: java.lang.NullPointerException
at sonia.scm.jenkins.update.JenkinsV2ConfigMigrationUpdateStep.buildConfig(JenkinsV2ConfigMigrationUpdateStep.java:79)
at sonia.scm.jenkins.update.JenkinsV2ConfigMigrationUpdateStep.lambda$doUpdate$0(JenkinsV2ConfigMigrationUpdateStep.java:73)
at sonia.scm.update.MapBasedPropertyReaderInstance.call(MapBasedPropertyReaderInstance.java:58)
…
Something related with update. To get application running again I need to erase scm-jenkins-plugin from plugins directory. With LDAP plugin removing ldap.xml helped so I tried here the same but it didn’t help. I would like to be able to use Jenkins plugin. Can I do something to fix it?