Issue When using RestartJenkinsRule, one expects to keep using the same JENKINS_HOME. This is the case normally, but not when using both RestartableJenkinsRule and @LocalData. Expected behaviour Jenkins.getRootDir() should stay the same during the execution of a given test, not be a new one for each step. How to reproduce I have created a test project to help understand/reproduce, but this is very easy to do.
- Create a test class with a @Rule RestartableJenkinsRule story ...
- Put the following in a test: story.then(rule -> System.out.println("ROOTDIR: "+rule.jenkins.getRootDir()));
You will see that the printing above will display different, or the same values, if you respectively use or do not use @LocalData. |