Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from RestartableJenkinsRule to JenkinsSessionRule #164

Merged
merged 1 commit into from
Jul 13, 2021

Conversation

basil
Copy link
Member

@basil basil commented May 31, 2021

We seem to be generally preferring JenkinsSessionRule to RestartableJenkinsRule. The main benefit to JenkinsSessionRule is that #then runs immediately, so it plays nicely with things like @After.

pb.redirectErrorStream(true);
System.err.println("Running: " + pb.command());
jnlpProc = pb.start();
new StreamCopyThread("jnlp", jnlpProc.getInputStream(), System.err).start();
}
// TODO @After does not seem to work at all in RestartableJenkinsRule
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This TODO is now done.

@car-roll car-roll merged commit cffc780 into jenkinsci:master Jul 13, 2021
@basil basil deleted the JenkinsSessionRule branch July 13, 2021 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants