Skip to content

Conversation

aliok
Copy link
Contributor

@aliok aliok commented Dec 12, 2016

Follow up of #2

  • make services stateless
  • make the delays parametrizable in services

@aliok
Copy link
Contributor Author

aliok commented Dec 12, 2016

ping @wtrocki @matzew @josemigallas

.build();
}

public static DiggerClientBuilder builder() {

Choose a reason for hiding this comment

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

IMO there's no point on having this method since DiggerClientBuilder is already public.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, right..

I personally think that DiggerClient.builder().foo().bar().build() is more fluent than new DiggerClientBuilder().foo().bar().build().
I am inspired by Guava in this idea.

I prefer keeping it for now, unless more objections arise.


Build a customized client:
```
DiggerClient client = DiggerClient.builder()
Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome idea!

}

public static class DiggerClientBuilder {
private JenkinsAuth auth;
Copy link
Contributor

Choose a reason for hiding this comment

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

Like it. That would be easy to test.

Copy link
Contributor

@wtrocki wtrocki left a comment

Choose a reason for hiding this comment

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

Reviewed and verified. Good to merge

@aliok aliok merged commit 641cd1b into aerogear-attic:master Dec 12, 2016
@aliok aliok deleted the AGDIGGER-59-trigger-jenkins-job-2 branch May 30, 2017 08:46
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.

3 participants