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

Rebuild plugin doesn't work from build result Parameters or Timings view

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.414.1
      Rebuilder Version325.v5ee8da_5293dc
      Build With Parameters Version76.v9382db_f78962

      From the Parameters or Timings view on a build result, clicking the Rebuild button generates the wrong URL which results in:

      HTTP ERROR 404 Not Found

      URI: /job/Personal/job/rebuild-test/1/parameters/rebuild/parameterized
      STATUS: 404
      MESSAGE: Not Found
      SERVLET: Stapler

      Powered by Jetty:// 10.0.15

       

      The correct URL should be 

      /job/Personal/job/rebuild-test/1/rebuild/parameterized

       not 

      /job/Personal/job/rebuild-test/1/parameters/rebuild/parameterized

       

      To reproduce the problem:

      • create a simple freestyle build with a parameter (shell step to echo a parameter works well)
      • run the build
      • navigate to the build result
      • click Parameters or Timings button to view associated build data
      • click Rebuild to try to rebuild with parameters
      • observe 404 error and wrong URL

          [JENKINS-71932] Rebuild plugin doesn't work from build result Parameters or Timings view

          Michael Gray created issue -
          Michael Gray made changes -
          Summary Original: Rebuild plugin doesn't work from Parmeters page New: Rebuild plugin doesn't work from Parameters page
          Michael Gray made changes -
          Attachment New: image-2023-08-30-08-29-19-778.png [ 61079 ]
          Michael Gray made changes -
          Description Original: From the `Parameters` page on a build result, clicking the *Rebuild* button generates the wrong URL:

          !image-2023-08-30-08-16-59-974.png!

           

          which results in:
          h2. HTTP ERROR 404 Not Found
          ||URI:|/job/Personal/job/rebuild-test/1/parameters/rebuild/parameterized|
          ||STATUS:|404|
          ||MESSAGE:|Not Found|
          ||SERVLET:|Stapler|
          ----
          [Powered by Jetty:// 10.0.15|https://eclipse.org/jetty]

           

          The correct URL should be 
          {noformat}
          /job/Personal/job/rebuild-test/1/rebuild/parameterized{noformat}
           not 
          {noformat}
          /job/Personal/job/rebuild-test/1/parameters/rebuild/parameterized{noformat}
           
          New: From the Parameters page on a build result, clicking the *Rebuild* button generates the wrong URL which results in:
          h2. HTTP ERROR 404 Not Found
          ||URI:|/job/Personal/job/rebuild-test/1/parameters/rebuild/parameterized|
          ||STATUS:|404|
          ||MESSAGE:|Not Found|
          ||SERVLET:|Stapler|
          ----
          [Powered by Jetty:// 10.0.15|https://eclipse.org/jetty]

           

          The correct URL should be 
          {noformat}
          /job/Personal/job/rebuild-test/1/rebuild/parameterized{noformat}
           not 
          {noformat}
          /job/Personal/job/rebuild-test/1/parameters/rebuild/parameterized{noformat}
           
          Michael Gray made changes -
          Attachment Original: image-2023-08-30-08-29-19-778.png [ 61079 ]
          Michael Gray made changes -
          Attachment Original: image-2023-08-30-08-17-58-815.png [ 61078 ]
          Michael Gray made changes -
          Environment Original: Jenkins 2.414.1
          Rebuilder Version325.v5ee8da_5293dc
          New: Jenkins 2.414.1
          Rebuilder Version325.v5ee8da_5293dc
          Build With Parameters Version76.v9382db_f78962
          Michael Gray made changes -
          Description Original: From the Parameters page on a build result, clicking the *Rebuild* button generates the wrong URL which results in:
          h2. HTTP ERROR 404 Not Found
          ||URI:|/job/Personal/job/rebuild-test/1/parameters/rebuild/parameterized|
          ||STATUS:|404|
          ||MESSAGE:|Not Found|
          ||SERVLET:|Stapler|
          ----
          [Powered by Jetty:// 10.0.15|https://eclipse.org/jetty]

           

          The correct URL should be 
          {noformat}
          /job/Personal/job/rebuild-test/1/rebuild/parameterized{noformat}
           not 
          {noformat}
          /job/Personal/job/rebuild-test/1/parameters/rebuild/parameterized{noformat}
           
          New: From the Parameters page on a build result, clicking the *Rebuild* button generates the wrong URL which results in:
          h2. HTTP ERROR 404 Not Found
          ||URI:|/job/Personal/job/rebuild-test/1/parameters/rebuild/parameterized|
          ||STATUS:|404|
          ||MESSAGE:|Not Found|
          ||SERVLET:|Stapler|
          ----
          [Powered by Jetty:// 10.0.15|https://eclipse.org/jetty]

           

          The correct URL should be 
          {noformat}
          /job/Personal/job/rebuild-test/1/rebuild/parameterized{noformat}
           not 
          {noformat}
          /job/Personal/job/rebuild-test/1/parameters/rebuild/parameterized{noformat}
           

          To reproduce the problem:
          - create a simple freestyle build with a parameter (shell step to echo the parameter works well)
          - run the build
          - navigate to the build result
          - click *Parameters* or *Timings* button to view associated build data
          - click *Rebuild* to try to rebuild with parameters
          - observe 404 error and wrong URL
          Michael Gray made changes -
          Summary Original: Rebuild plugin doesn't work from Parameters page New: Rebuild plugin doesn't work from build result Parameters or Timings view
          Michael Gray made changes -
          Description Original: From the Parameters page on a build result, clicking the *Rebuild* button generates the wrong URL which results in:
          h2. HTTP ERROR 404 Not Found
          ||URI:|/job/Personal/job/rebuild-test/1/parameters/rebuild/parameterized|
          ||STATUS:|404|
          ||MESSAGE:|Not Found|
          ||SERVLET:|Stapler|
          ----
          [Powered by Jetty:// 10.0.15|https://eclipse.org/jetty]

           

          The correct URL should be 
          {noformat}
          /job/Personal/job/rebuild-test/1/rebuild/parameterized{noformat}
           not 
          {noformat}
          /job/Personal/job/rebuild-test/1/parameters/rebuild/parameterized{noformat}
           

          To reproduce the problem:
          - create a simple freestyle build with a parameter (shell step to echo the parameter works well)
          - run the build
          - navigate to the build result
          - click *Parameters* or *Timings* button to view associated build data
          - click *Rebuild* to try to rebuild with parameters
          - observe 404 error and wrong URL
          New: From the *Parameters* or *Timings* view on a build result, clicking the *Rebuild* button generates the wrong URL which results in:
          h2. HTTP ERROR 404 Not Found
          ||URI:|/job/Personal/job/rebuild-test/1/parameters/rebuild/parameterized|
          ||STATUS:|404|
          ||MESSAGE:|Not Found|
          ||SERVLET:|Stapler|
          ----
          [Powered by Jetty:// 10.0.15|https://eclipse.org/jetty]

           

          The correct URL should be 
          {noformat}
          /job/Personal/job/rebuild-test/1/rebuild/parameterized{noformat}
           not 
          {noformat}
          /job/Personal/job/rebuild-test/1/parameters/rebuild/parameterized{noformat}
           

          To reproduce the problem:
           - create a simple freestyle build with a parameter (shell step to echo a parameter works well)
           - run the build
           - navigate to the build result
           - click *Parameters* or *Timings* button to view associated build data
           - click *Rebuild* to try to rebuild with parameters
           - observe 404 error and wrong URL
          Michael Gray made changes -
          Environment Original: Jenkins 2.414.1
          Rebuilder Version325.v5ee8da_5293dc
          Build With Parameters Version76.v9382db_f78962
          New: Jenkins 2.414.1
          Rebuilder Version325.v5ee8da_5293dc
          Build With Parameters Version76.v9382db_f78962

            lmgray Michael Gray
            lmgray Michael Gray
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: