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 ]|
|Assignee||Jesse Glick [ jglick ]|
|Status||Open [ 1 ]||In Progress [ 3 ]|
|Remote Link||This issue links to "jenkins-test-harness #428 (Web Link)" [ 27706 ]|
|Status||In Progress [ 3 ]||In Review [ 10005 ]|
|Resolution||Fixed [ 1 ]|
|Status||In Review [ 10005 ]||Resolved [ 5 ]|