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

add field for setting context for pending step #159

Merged
merged 3 commits into from
Nov 23, 2016
Merged

add field for setting context for pending step #159

merged 3 commits into from
Nov 23, 2016

Conversation

koenpunt
Copy link
Contributor

@koenpunt koenpunt commented Nov 20, 2016

I've updated the pending step with the context field also available in the after build step.

But I couldn't get the failing test updated to make it work again, so if anyone can give me some pointers there?

I'm totally new to java, and somethings are easy to derive from existing code, but I actually have no idea what I'm doing 💩. But the implementation is functional in my installation.


This change is Reviewable

@lanwen
Copy link
Member

lanwen commented Nov 21, 2016

Thanks for the contribution! Please add public Object readResolve() method to handle null-deserialization
Example:
https://github.com/jenkinsci/github-plugin/blob/master/src/main/java/org/jenkinsci/plugins/github/status/GitHubCommitStatusSetter.java#L173-L178

return contextSource;
}

/**
* @since 1.14.1
*/
@DataBoundSetter
public void setStatusMessage(ExpandableMessage statusMessage) {
this.statusMessage = statusMessage;
}

Copy link
Member

Choose a reason for hiding this comment

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

please add since FIXME javadoc tag, i'll fix actual version before release

this to handle null-serialization
@koenpunt
Copy link
Contributor Author

I've updated the code per the requested changes. Should I squash some of these commits?

@lanwen
Copy link
Member

lanwen commented Nov 21, 2016

No, github can squash by itself

@lanwen lanwen merged commit 251aa3a into jenkinsci:master Nov 23, 2016
@koenpunt koenpunt deleted the pending-context branch November 23, 2016 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants