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

Shelve project plugin failed to parse timestamp from archive name

    XMLWordPrintable

Details

    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

          pierrebtz Pierre Beitz added a comment -

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

           

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

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

          pierrebtz Pierre Beitz added a comment - xpyct707 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?
          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.

          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

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

            Dates

              Created:
              Updated:
              Resolved: