Skip to content
Permalink
Browse files

[FIXED JENKINS-14411] publisher support

extend Project/Build, not AbstractProject/AbstractBuild
to get full publisher support
  • Loading branch information...
ndeloof committed Sep 3, 2012
1 parent 6909055 commit 1a536a0e0beb6d61695316a34f7d17f309fb685c
@@ -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();

@@ -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());
@@ -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;
}

}
@@ -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());

0 comments on commit 1a536a0

Please sign in to comment.
You can’t perform that action at this time.