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

Better error messages when pattern doesn't match any files

XMLWordPrintable

      If the pattern for the war doesn't match a file, the plugin fails with the error below. Instead it should fail with "Could not find any files matching this pattern: *.war"

      CloudbeesPublisher :: perform account-id :: accountid/appid
      found remote files : []
      ERROR: Publisher org.jenkins.plugins.cloudbees.CloudbeesPublisher aborted due to exception
      java.lang.ArrayIndexOutOfBoundsException: 0
      at java.util.Arrays$ArrayList.get(Arrays.java:3381)
      at org.jenkins.plugins.cloudbees.CloudbeesPublisher.perform(CloudbeesPublisher.java:163)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:654)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:633)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:611)
      at hudson.model.Build$RunnerImpl.post2(Build.java:159)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:580)
      at hudson.model.Run.run(Run.java:1386)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:145)
      Finished: FAILURE

            olamy Olivier Lamy
            recampbell Ryan Campbell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: