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

Filesystem list parameter reset to default when rebuilding previous job

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • Jenkins 2.190.3
      Java OpenJDK Runtime Environment 1.8.0_222-8u222-b10-1ubuntu1~18.04.1-b10
      filesystem-list-parameter-plugin 0.0.5
      rebuild 1.31

      When trying to rebuild a previous job using the rebuild plugin, any filesystem list parameter value of job run to rebuild is discarded and the parameter values are set to the default value.

       

      Steps to reproduce:

      1. Create a test directory on the master node with two empty subdirectories "A" and "B"
      2. Create a new freestyle job
      3. Open job configuration
      4. Check "This project is parameterized"
      5. Click "Add Parameter"
      6. Choose "File system objects list parameter"
      7. Configure name "test123", NodeName "master", Path "/path/to/test/dir" (created in step 1), Filesystem object type "ALL"
      8. Save configuration
      9. Build job with parameters: parameter directory list shows "A" by default, select "B" and click "Build"
      10. If job succeeded, "Parameters" should show the value select in step 9
      11. Click "Rebuild Last"

      Expected result: file system parameter shows value configured in step 9 ("B")

      Actual result: file system parameter shows value "A", so job will be rebuilt with wrong parameters

            aendter Alexander Endter
            securitykernel René Korthaus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: