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 optional folder path to jobs api #20

Merged
merged 8 commits into from
May 14, 2018

Conversation

Dhivyaa21
Copy link
Contributor

@Dhivyaa21 Dhivyaa21 commented May 14, 2018

@cdancy - This is the new pull-request for issue#10. I have added an additional test method to install folder plugin(if it is not present). Please review.

@cdancy cdancy self-assigned this May 14, 2018
@cdancy cdancy added this to the v0.0.10 milestone May 14, 2018
Plugins plugins = api.pluginManagerApi().plugins(3, null);
for(Plugin plugin:plugins.plugins()) {
if(plugin.shortName().equals(FOLDER_PLUGIN_NAME) && plugin.version().equals(FOLDER_PLUGIN_VERSION)) {
installed = true;
Copy link
Owner

Choose a reason for hiding this comment

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

lets put a break; after this line so that we don't continue looking through the list of installed plugins which could potentially be very big.

private Integer buildNumber;
private static final String FOLDER_PLUGIN_NAME = "cloudbees-folder";
private static final String FOLDER_PLUGIN_VERSION = "6.4";
Copy link
Owner

Choose a reason for hiding this comment

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

What about using latest here instead of an actual version? That's very non-ci but I'd rather chase the latest and greatest version instead of something which may become out of date over time.

Thread.sleep(10000);
endTime += 10000;
}
else {
Copy link
Owner

Choose a reason for hiding this comment

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

lets put this else on the previous line.

@cdancy
Copy link
Owner

cdancy commented May 14, 2018

@Dhivyaa21 few minor comments to address but it looks good.

@Dhivyaa21 Dhivyaa21 force-pushed the add-optional-folder-path-to-jobsApi branch from e627f0a to eb3a3f0 Compare May 14, 2018 18:02
@Dhivyaa21
Copy link
Contributor Author

@cdancy - rebased the branch off of master and fixed the conflicts. Please review.

@cdancy
Copy link
Owner

cdancy commented May 14, 2018

@Dhivyaa21 LGTM. Thanks!

@martinda pulling this into master now and doing a release shortly.

Feel free to star the project and tell your friends (shameless plug) to get more folks interested and using what we're building!

@cdancy cdancy merged commit ab3b876 into cdancy:master May 14, 2018
@cdancy
Copy link
Owner

cdancy commented May 14, 2018

v0.0.10 has been released and is now available.

@martinda
Copy link
Collaborator

I added a section to advertise jenkins-rest on the Jenkins Remote access API wiki page.

@cdancy
Copy link
Owner

cdancy commented May 15, 2018

@martinda very awesome and a huge thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants