If you use JenkinsRule.createSlave (or createOnlineSlave) from a test based on RestartableJenkinsRule, it seems to work during the first session. But then the whole slave directory gets quietly deleted during the restart.
Either this deletion should be suppressed, or there should be an alternate method to create a slave that actually survives the restart intact.
See WorkflowTest.buildShellScriptAcrossRestart and BindingStepTest.cleanupAfterRestart.
|Field||Original Value||New Value|
|Issue Type||Improvement [ 4 ]||Bug [ 1 ]|
|Workflow||JNJira [ 160464 ]||JNJira + In-Review [ 180362 ]|
|Labels||testing workflow||pipeline testing workflow|
|Labels||pipeline testing workflow||pipeline testing|
|Component/s||jenkins-test-harness [ 21462 ]|
|Component/s||core [ 15593 ]|