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

          Evan added a comment -

          For context, this only happens with the incremental build from https://github.com/jenkinsci/rebuild-plugin/pull/155#issuecomment-1699461014, not in the latest release

          Evan added a comment - For context, this only happens with the incremental build from https://github.com/jenkinsci/rebuild-plugin/pull/155#issuecomment-1699461014, not in the latest release

          Ivan Sugonyak added a comment - - edited

          Are you sure that this is a problem with build-with-parameters-plugin and not with core Jenkins functionality or Rebuild plugin? Because build-with-parameters-plugin only exposes parambuild url

          Ivan Sugonyak added a comment - - edited Are you sure that this is a problem with build-with-parameters-plugin and not with core Jenkins functionality or Rebuild plugin? Because build-with-parameters-plugin only exposes parambuild url

          Eloy Lafuente added a comment -

          > Are you sure that this is a problem with build-with-parameters-plugin

          sugonyak_ivan is correct, IMO. We should remove the "build-with-parameters-plugin" from components in this issue as far as the only one affected by the security problem is the "rebuild-plugin", hopefully now fixed (already merged) by https://github.com/jenkinsci/rebuild-plugin/pull/155.

          Ciao

          Eloy Lafuente added a comment - > Are you sure that this is a problem with build-with-parameters-plugin sugonyak_ivan is correct, IMO. We should remove the "build-with-parameters-plugin" from components in this issue as far as the only one affected by the security problem is the "rebuild-plugin", hopefully now fixed (already merged) by https://github.com/jenkinsci/rebuild-plugin/pull/155 . Ciao

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

              Created:
              Updated: