org.jenkinsci.plugins.rundeck
Class RundeckTrigger

java.lang.Object
  extended by hudson.triggers.Trigger<hudson.model.AbstractProject<?,?>>
      extended by org.jenkinsci.plugins.rundeck.RundeckTrigger
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.triggers.Trigger<?>>

public class RundeckTrigger
extends hudson.triggers.Trigger<hudson.model.AbstractProject<?,?>>

Triggers a build when we receive a WebHook notification from RunDeck.

Author:
Vincent Behar

Nested Class Summary
static class RundeckTrigger.RundeckDescriptor
           
 
Nested classes/interfaces inherited from class hudson.triggers.Trigger
hudson.triggers.Trigger.Cron
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.triggers.Trigger
job, spec, tabs, timer
 
Constructor Summary
RundeckTrigger(Boolean filterJobs, List<String> jobsIdentifiers, List<String> executionStatuses)
           
 
Method Summary
 RundeckTrigger.RundeckDescriptor getDescriptor()
           
 List<String> getExecutionStatuses()
           
 Boolean getFilterJobs()
           
 List<String> getJobsIdentifiers()
           
 void onNotification(org.rundeck.api.domain.RundeckExecution execution)
          Called when we receive a RunDeck notification
 
Methods inherited from class hudson.triggers.Trigger
all, checkTriggers, for_, getProjectAction, getProjectActions, getSpec, init, readResolve, run, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RundeckTrigger

@DataBoundConstructor
public RundeckTrigger(Boolean filterJobs,
                                           List<String> jobsIdentifiers,
                                           List<String> executionStatuses)
Method Detail

onNotification

public void onNotification(org.rundeck.api.domain.RundeckExecution execution)
Called when we receive a RunDeck notification

Parameters:
execution - at the origin of the notification

getFilterJobs

public Boolean getFilterJobs()

getJobsIdentifiers

public List<String> getJobsIdentifiers()

getExecutionStatuses

public List<String> getExecutionStatuses()

getDescriptor

public RundeckTrigger.RundeckDescriptor getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.triggers.Trigger<?>>
Overrides:
getDescriptor in class hudson.triggers.Trigger<hudson.model.AbstractProject<?,?>>


Copyright © 2004-2012. All Rights Reserved.