Skip to content

Fixed JENKINS-36952 and added timeOutInSeconds to Clone and Deploy#65

Closed
MarcelMue wants to merge 3 commits intojenkinsci:masterfrom
MarcelMue:master
Closed

Fixed JENKINS-36952 and added timeOutInSeconds to Clone and Deploy#65
MarcelMue wants to merge 3 commits intojenkinsci:masterfrom
MarcelMue:master

Conversation

@MarcelMue
Copy link
Copy Markdown

All changes were done for pipeline support only.

@MarcelMue
Copy link
Copy Markdown
Author

Is there a chance that this can be merged? @jswager

Copy link
Copy Markdown
Contributor

@elordahl elordahl left a comment

Choose a reason for hiding this comment

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

Can you fix the formatting issues?

private final String folder;
private final String customizationSpec;
private final boolean powerOn;
private Integer timeoutInSeconds = new Integer(TIMEOUT_DEFAULT);
Copy link
Copy Markdown
Contributor

@elordahl elordahl Jul 4, 2017

Choose a reason for hiding this comment

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

• Why don't you declare this as final and set it in the constructor if null?
• Why are you using an Integer over a primitive int? Are you giving the user a field to provide an override?

@ghost
Copy link
Copy Markdown

ghost commented Jul 13, 2017

Can this be fixed and merged please? The plugin is extremely broken in the pipeline with hard-coded timeout and the exceptions it causes. This PR would fix all of it, but it's been sitting here stale for 6 months.
It would close https://issues.jenkins-ci.org/browse/JENKINS-36952 if it was merged!

If formatting for adding timeout is the issue, I created another pull request that will at least fix exceptions in Jenkins pipeline. #79. If this gets merged first feel free to close that PR.

@pjdarton
Copy link
Copy Markdown
Member

@phucyall FYI at present this plugin is in a state of statis because the sole maintainer who has write access (which is required to merge a PR) is no longer able to spend time on this. There are efforts being made (see #76 for discussion) to transfer access so we can get things moving again.

Note: at present this PR isn't in a good state (the issues raised above have not been dealt with) so it isn't presently in a state where I'd merge it even if I did have write-access and I expect that Eric would be like minded.

However, you could help...
If you were to create your own PR (and mention this one in the description/discussion) which implemented this fix in an acceptable way (i.e. addressing the issues that Eric raised above) then, personally, I'd be perfectly happy to merge it along with everything else (if I ever get write-access - it's not a fast process).
As a bonus, if you made your own PR, you'll get given a personal build of the plugin containing your changes, which can unblock you until we can get stuff merged - we both win ;-)

@ghost
Copy link
Copy Markdown

ghost commented Jul 13, 2017

Wonderful. I did already create my own PR with just the fix for the exception (there is a workaround that doesn't require updated timeout). Looking forward to my own build of the plugin 😃

@MarcelMue
Copy link
Copy Markdown
Author

Just as a heads up: I am currently unable to implement any changes as I no longer have a setup to test on. The feedback from Eric came so much later, that I had given up on the hopes of ever getting something merged.

My workaround was to simply switch away from the plugin in the end.

@ghost
Copy link
Copy Markdown

ghost commented Jul 13, 2017

If the development on this plugin picks up again (at least the merging starts happening) I would gladly re-do your changes with the feedback addressed. It would for sure be nice to be able to set the timeout right in the clone task. That's more of an enhancement though. The real bug was lack of null check before setting "VSPHERE_IP" env. variable. I already made a separate PR for that fix

@pjdarton
Copy link
Copy Markdown
Member

@MarcelMue That's pretty much the situation that Jason (currently the only person with write-access) is in - he no longer has a setup to test on. Also, the notifications (to Jason) about activity on the plugin stopped getting through, so he had no idea everyone was waiting for him. He is now aware ;-)

@phucyall I'd suggest that you "subscribe" to the issues that I raised that aren't merged yet (71 to 78). If you see a series of mergers happening there, that's your queue to get coding and submit a tidier PR that we can merge before the flurry of activity ceases ;-)

@pjdarton
Copy link
Copy Markdown
Member

As mentioned in #76, I now have permission to process pull requests on this plugin. As a result, I've been reviewing lots of outstanding pull requests.

I've not merged this one because the concerned raised earlier hadn't been addressed.
However this is now being handled by #79 (already merged) and #81 (in progress right now), so I'm going to close this one.

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