Allow support for "alpha", "beta" and "RC" versions of jenkins-core

XMLWordPrintable

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: plugin-compat-tester
    • None

      The PCT can not be run against jenkins versions that embed a RC, alpha or beta version of
      jenkins-core, trying to do that results in:

      Exception in thread "main" java.io.IOException: no jenkins-core.jar in jenkins.war	
           at org.jenkins.tools.test.PluginCompatTester.scanWAR(PluginCompatTester.java:517)
           at org.jenkins.tools.test.PluginCompatTester.testPlugins(PluginCompatTester.java:158)
           at org.jenkins.tools.test.PluginCompatTesterCli.main(PluginCompatTesterCli.java:110) 
      

      The reason is that the method scanWar in PluginCompatTester uses the following code to locate the jenkins-core war

      Matcher m = Pattern.compile("WEB-INF/lib/jenkins-core-([0-9.]+(?:-[0-9.]+)?(?:-SNAPSHOT)?)[.]jar").matcher(name);
      

            Assignee:
            Raul Arabaolaza
            Reporter:
            Raul Arabaolaza
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: