-
Notifications
You must be signed in to change notification settings - Fork 1
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
fixes concurrent build issue #1
Conversation
766007f
to
c63fe3e
Compare
9be69cd
to
d5ac507
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
d5ac507
to
f910664
Compare
f910664
to
8adc666
Compare
f9dbd6f
to
1099959
Compare
|
||
@Test | ||
public void should_add_blocking_properties_from_config_file() throws IOException { | ||
FreeStyleProject job1 = jenkins.createFreeStyleProject("testJob"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe I will call testJob
instead of job1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better, fixed it.
if(job.getProperty(BuildBlockerProperty.class) == null) { | ||
try { | ||
BuildBlockerProperty buildBlockerProperty = BuildBlockerProperty.getDefaultProperties(); | ||
LOG.log(Level.INFO, "Adding blocking properties "+buildBlockerProperty+" to job "+ job.getName()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stupid thing, can you add white space between +
of string concatenation? Just that is the de-facto format way :)
job.removeProperty(BuildBlockerProperty.class); | ||
job.addProperty(property); | ||
} catch (IOException e) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we add a log message or something? Just to be sure that we do not loose any important information.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
dcff920
to
7d3d109
Compare
- changed the plugin code to manage build throttling configuration from 'Manage Jenkins Configuration' (central) pane - added the job listener to add throttling behavior for new workflow jobs - added unit tests to check build blocking properties - updated README about plugin configuration for fabric8 jenkins deployment - fixed review comments
7d3d109
to
a8ae9b1
Compare
Fixes openshiftio/openshift.io#2729