-
Bug
-
Resolution: Fixed
-
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:
- Create a test directory on the master node with two empty subdirectories "A" and "B"
- Create a new freestyle job
- Open job configuration
- Check "This project is parameterized"
- Click "Add Parameter"
- Choose "File system objects list parameter"
- Configure name "test123", NodeName "master", Path "/path/to/test/dir" (created in step 1), Filesystem object type "ALL"
- Save configuration
- Build job with parameters: parameter directory list shows "A" by default, select "B" and click "Build"
- If job succeeded, "Parameters" should show the value select in step 9
- 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