-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fix for JENKINS-24581 #1
Conversation
Added matrix-project plugin to satisfy the envinject lib which assumes it is available. Set the groovy version because of some build issues.
jenkins core, see: JENKINS-24581
Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests |
@@ -378,4 +381,10 @@ public Task getOwnerTask() { | |||
public Object getSameNodeConstraint() { | |||
return null; | |||
} | |||
|
|||
@Override | |||
public Authentication getDefaultAuthentication() { |
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.
What is this?
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.
Without it I get the error:
The type BatchTask must implement the inherited abstract method Queue.Task.getDefaultAuthentication()
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.
Any chance you could take another look, daniel-beck ?
Hello, I manually applied the patches from this PR and tried it out. The display is much better but starting tasks stopped working. My task seemed to be waiting for an executor to become available but nothing else was running. |
What version of Jenkins did you run the plugin on ? I have tested it on 1.615 and so far it has been working. |
I've just checked my logs and I see this: Jun 26, 2015 9:12:42 AM hudson.triggers.SafeTimerTask run |
I've changed BatchTask.getDefaultAuthentication() to this and it works for me now: @OverRide |
Any thoughts on merging this in with the ACL.SYSTEM change? I've been using it fine for months now. |
Sorry for taking so long - but the change is pushed |
We have been using a 1.18 snapshot build of the plugin based on the latest commit 3b0f9f4 in production successfully since end of 2015, running on Jenkins LTS versions 1.609.3 and later 1.625.3. We will upgrade to newer Jenkins versions soon. I think this PR is good and should be merged. Are there any reasons not to do so, other than resolving conflicts? The released version 1.19 does not display correctly on the Jenkins versions above. |
@pbthorste - would you update the PR? Otherwise I could take your branch and do that myself. |
I have created a new rebased PR #7 that only contains the actually required changes compared to current master. |
Closing this as the code was merged in #12. Thanks @pbthorste |
These changes update the batch-task plugin so that it displays correctly in more recent versions of jenkins.