Package io.fabric8.jenkins.openshiftsync
Class PipelineJobListener
- java.lang.Object
-
- hudson.model.listeners.ItemListener
-
- io.fabric8.jenkins.openshiftsync.PipelineJobListener
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class PipelineJobListener extends ItemListener
Listens toWorkflowJob
objects being updated via the web console or Jenkins REST API and replicating the changes back to the OpenShiftBuildConfig
for the case where folks edit inline Jenkinsfile flows inside the Jenkins UI
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description PipelineJobListener()
PipelineJobListener(String server, String[] namespaces, String jobNamePattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCreated(Item item)
void
onDeleted(Item item)
void
onUpdated(Item item)
String
toString()
void
upsertItem(Item item)
-
Methods inherited from class hudson.model.listeners.ItemListener
all, checkBeforeCopy, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCheckCopy, onCopied, onLoaded, onLocationChanged, onRenamed, register
-
-
-
-
Method Detail
-
onCreated
public void onCreated(Item item)
- Overrides:
onCreated
in classItemListener
-
onUpdated
public void onUpdated(Item item)
- Overrides:
onUpdated
in classItemListener
-
onDeleted
public void onDeleted(Item item)
- Overrides:
onDeleted
in classItemListener
-
upsertItem
public void upsertItem(Item item)
-
-