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

Shelve project plugin failed to parse timestamp from archive name

    Details

    • Similar Issues:

      Description

      Hello team,

      While parsing job archive name like "job_name-1522136806296 (2).zip" , the plugin crashes with:

      04:13:14 java.lang.NumberFormatException: For input string: "1522136806296 (2)"
      04:13:14 at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      04:13:14 at java.lang.Long.parseLong(Long.java:441)
      04:13:14 at java.lang.Long.valueOf(Long.java:540)
      04:13:14 at org.jvnet.hudson.plugins.shelveproject.ShelvedProjectsAction.getShelvedProjectFromArchive(ShelvedProjectsAction.java:99)
      04:13:14 at org.jvnet.hudson.plugins.shelveproject.ShelvedProjectsAction.getShelvedProjects(ShelvedProjectsAction.java:74)

        Attachments

          Activity

          Hide
          pierrebtz Pierre Beitz added a comment -

          Sergey Ryazantsev The provided stack doesn't match the latest plugin release, could you please try reproducing on this release? 

           

          Show
          pierrebtz Pierre Beitz added a comment - Sergey Ryazantsev The provided stack doesn't match the latest plugin release, could you please try reproducing on this release?   
          Hide
          pierrebtz Pierre Beitz added a comment -

          Sergey Ryazantsev nevermind my latest comment. I found the guilty code, it's some legacy code for pre v2 shelved projects. What I don't explain if why you end up with this (2) in the filename, the plugin is not supposed to do that. Was the shelvedProjects folder somehow changed (copied, moved etc???).

          Could you please list the files in it?

          Show
          pierrebtz Pierre Beitz added a comment - Sergey Ryazantsev nevermind my latest comment. I found the guilty code, it's some legacy code for pre v2 shelved projects. What I don't explain if why you end up with this (2) in the filename, the plugin is not supposed to do that. Was the shelvedProjects folder somehow changed (copied, moved etc???). Could you please list the files in it?
          Hide
          pierrebtz Pierre Beitz added a comment -

          Closing as not reproducible. My current analysis is still that the archive file was somehow duplicated (by the OS?). If you have a use case, please reopen.

          Show
          pierrebtz Pierre Beitz added a comment - Closing as not reproducible. My current analysis is still that the archive file was somehow duplicated (by the OS?). If you have a use case, please reopen.

            People

            • Assignee:
              pierrebtz Pierre Beitz
              Reporter:
              xpyct707 Sergey Ryazantsev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: