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

Refactor build card into extensible class #111

Merged
merged 9 commits into from
Jun 19, 2017
Merged

Refactor build card into extensible class #111

merged 9 commits into from
Jun 19, 2017

Conversation

dalvizu
Copy link
Member

@dalvizu dalvizu commented Jun 19, 2017

This allows tickets like Jenkins-38670 to be solved -- make individual build cards customizable in your own plugin (or as another provided build card)

Dan Alvizu and others added 9 commits December 1, 2016 16:11
Move all "Build Card" display and trigger logic into a
BuildCardExtension class. This allows plugins or other
BuildCardExtension children to customize behavior, for example
to require approval notes
Conflicts:
	src/main/java/au/com/centrumsystems/hudson/plugin/buildpipeline/extension/PipelineHeaderExtension.java
	src/test/java/au/com/centrumsystems/hudson/plugin/buildpipeline/BuildPipelineViewTest.java
This is a bit anathema to using handlebars but we're more or less stuck
with it: provide a way for a BuildCardExtention to contribute JS to the
build card, allowing for richer build cards.

Also switched an appendTo() to an append() which during testing did
an evaluation of the JS but only when it was in progress - this
would result in build cards being hidden if the build is in progress.

jQuery docs say these are equivalent, but they are liars.
[Fixed JENKINS-23532] Search Folders when trying to find upstream project
@dalvizu dalvizu merged commit 15b7b6a into master Jun 19, 2017
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.

2 participants