Skip to content

Commit

Permalink
[FIXED JENKINS-14411] publisher support
Browse files Browse the repository at this point in the history
extend Project/Build, not AbstractProject/AbstractBuild
to get full publisher support
  • Loading branch information
ndeloof committed Sep 3, 2012
1 parent 6909055 commit 1a536a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
26 changes: 1 addition & 25 deletions src/main/java/com/cloudbees/plugins/flow/BuildFlow.java
Expand Up @@ -34,7 +34,7 @@
*
* @author <a href="mailto:nicolas.deloof@cloudbees.com">Nicolas De loof</a>
*/
public class BuildFlow extends AbstractProject<BuildFlow, FlowRun> implements TopLevelItem, FlyweightTask, SCMedItem {
public class BuildFlow extends Project<BuildFlow, FlowRun> implements TopLevelItem, FlyweightTask, SCMedItem {

private final FlowIcon icon = new FlowIcon();

Expand Down Expand Up @@ -65,9 +65,6 @@ public BuildFlowDescriptor getDescriptor() {
return DESCRIPTOR;
}

public void onCompleted(Run run) {
}

@Override
public String getPronoun() {
return AlternativeUiTextProvider.get(PRONOUN, this, Messages.BuildFlow_Messages());
Expand All @@ -86,30 +83,9 @@ public TopLevelItem newInstance(ItemGroup parent, String name) {
}
}

@Override
public DescribableList<Publisher, Descriptor<Publisher>> getPublishersList() {
return new DescribableList<Publisher,Descriptor<Publisher>>(this);
}

@Override
protected Class<FlowRun> getBuildClass() {
return FlowRun.class;
}

@Override
public boolean isFingerprintConfigured() {
// TODO Auto-generated method stub
return false;
}

@Override
protected void buildDependencyGraph(DependencyGraph graph) {
// TODO Auto-generated method stub

}

public AbstractProject<?, ?> asProject() {
return (AbstractProject) this;
}

}
2 changes: 1 addition & 1 deletion src/main/java/com/cloudbees/plugins/flow/FlowRun.java
Expand Up @@ -38,7 +38,7 @@
*
* @author <a href="mailto:nicolas.deloof@cloudbees.com">Nicolas De loof</a>
*/
public class FlowRun extends AbstractBuild<BuildFlow, FlowRun>{
public class FlowRun extends Build<BuildFlow, FlowRun>{

private static final Logger LOGGER = Logger.getLogger(FlowRun.class.getName());

Expand Down

0 comments on commit 1a536a0

Please sign in to comment.