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

Extended setter for status #119

Merged
merged 7 commits into from
Apr 26, 2016
Merged

Extended setter for status #119

merged 7 commits into from
Apr 26, 2016

Conversation

lanwen
Copy link
Member

@lanwen lanwen commented Apr 17, 2016

image

also will be:

  • extended pipeline dsl (require core dep updating, will be in next pr)
  • docs + helps for new classes
  • deprecation of old setters
  • manual fields to enter sha, message, etc...
  • tests

linked with:


This change is Reviewable

@jenkinsadmin
Copy link
Member

Thank you for this pull request! Please check this document for how the Jenkins project handles pull requests.

* @return true if exception handled successfully
* @throws Exception you can rethrow exception of any type
*/
boolean handle(Exception e, @Nonnull Run<?, ?> run, @Nonnull TaskListener listener) throws Exception;

Choose a reason for hiding this comment

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

MAJOR Define and throw a dedicated exception instead of using a generic one. rule

when(env.expand(Matchers.anyString())).thenReturn(EXPANDED);

String context = new ManuallyEnteredShaSource("").get(run, listener);
assertThat(context, equalTo(EXPANDED));

Choose a reason for hiding this comment

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

MAJOR Add a message to this assertion. rule

Deprecate them. Make PENDING setter not to fail build on any errors, as of most of the people don't want to fail the entire build because of we can't set status
@dummy-lanwen-bot
Copy link

SonarQube analysis reported 4 issues:

  • MAJOR 4 major

Watch the comments in this conversation to review them.

@lanwen lanwen merged commit 350802c into jenkinsci:master Apr 26, 2016
@lanwen lanwen deleted the st_setter branch April 26, 2016 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants