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

JENKINS-37104# Matrix project handling #412

Merged
merged 2 commits into from
Aug 18, 2016
Merged

JENKINS-37104# Matrix project handling #412

merged 2 commits into from
Aug 18, 2016

Conversation

vivek
Copy link
Collaborator

@vivek vivek commented Aug 17, 2016

Description

See https://issues.jenkins-ci.org/browse/JENKINS-37104

Submitter checklist

Triggered another: https://ci.blueocean.io/job/Acceptance%20Tests%20Param/20/

Reviewer checklist

  • Run the changes and verified the change matches the issue description
  • Reviewed the code
  • Verified that the appropriate tests have been written or valid explaination given

@jenkinsci/code-reviewers @reviewbybees

  • Bare minimum support for Matrix project. Ensures it doesn't break.
  • For matrix project, self href points to classic URL path ("/job/:name")
  • Adds hudson.matrix.MatrixProject capability
  • UI to check hudson.matrix.MatrixProject capability and if present create a link using returned self href,
    so that when user clicks on it, he gets redirected to classic Matrix job page.

- Bare minimum support for Matrix project. Ensures it doesn't break.
- For matrix project, self href points to classic URL path ("/job/:name")
- Adds hudson.matrix.MatrixProject capability
- UI to check hudson.matrix.MatrixProject capability and if present create a link using returned self href,
  so that when user clicks on it, he gets redirected to classic Matrix job page.
@ghost
Copy link

ghost commented Aug 17, 2016

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

@michaelneale
Copy link
Member

@vivek seems to have upset the favoriting feature (cc @cliffmeyers) - kicking it again to see if sporadic.

@michaelneale
Copy link
Member

🐛 fails the fav. tests with 500 errors, but not sure why. Can you get @cliffmeyers to cast eye over it?

…ail as Favorite plugin idepends on matrix project plugin and has reference to MatrixConfiguration.
@vivek
Copy link
Collaborator Author

vivek commented Aug 17, 2016

@michaelneale I removed test dependency on matrix project plugin thinking we don't need it. This broke the tests as Favorite plugin depends on matrix project plugin. I reverted that dependency and tests pass now. Is there anything holding back this merge?

@michaelneale
Copy link
Member

@vivek I think it should be ok - myself or someone else just needs to eyeball it (but I won't get to it this morning). If anyone else can try this one out and check it is ok, would be appreciated.

@imeredith
Copy link
Collaborator

@vivek I cant test out the code right now, but where is the pick that makes the following work?

  • UI to check hudson.matrix.MatrixProject capability and if present create a link using returned self href, so that when user clicks on it, he gets redirected to classic Matrix job page.

@vivek
Copy link
Collaborator Author

vivek commented Aug 17, 2016

@imeredith 'but where is the pick that makes the following work?' you mean mockup?

@imeredith
Copy link
Collaborator

@vivek Sorry i meant 'part'. I dont see code that makes UI redirect if matrix job is clicked?

@vivek
Copy link
Collaborator Author

vivek commented Aug 17, 2016

@imeredith Oh, its to be done in separate ticket, not part of this PR, https://issues.jenkins-ci.org/browse/JENKINS-37427.

@michaelneale
Copy link
Member

@vivek ready for review (can we remove the work-in-progress label?)

@imeredith
Copy link
Collaborator

Ok 🐝 from me then.

@vivek
Copy link
Collaborator Author

vivek commented Aug 18, 2016

@imeredith I take that as ready to merge?

@michaelneale
Copy link
Member

I won't have a chance to eyeball this today, so if @imeredith can or @vivek you are happy it loads up blueocean ui with some existing jobs etc - then I am ok with it. Code looks good. ATH passes.

@vivek
Copy link
Collaborator Author

vivek commented Aug 18, 2016

@michaelneale yes I have done a clean build, loads up fine with different kind of jobs. Going to merge.

@vivek vivek merged commit 05537ff into master Aug 18, 2016
@vivek vivek deleted the task/JENKINS-37104 branch August 18, 2016 02:31
*/

import hudson.Extension;
import hudson.matrix.MatrixProject;
Copy link
Member

Choose a reason for hiding this comment

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

Neglected to add the corresponding dependency to blueocean-pipeline-api-impl/pom.xml, implicitly relying on htmlpublisher to provide it (no longer the case after jenkinsci/htmlpublisher-plugin#287).

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.

4 participants