Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package hudson.plugins.downstream_ext;
 
 import java.util.List;
 
Defines a dependency introduced by the downstream-ext plugin.

Author(s):
kutzi
public class DownstreamDependency extends Dependency {
	private final DownstreamTrigger trigger;
	public DownstreamDependency(AbstractProject<?, ?> upstreamAbstractProject<?, ?> downstream,
			DownstreamTrigger trigger) {
		super(upstreamdownstream);
		this. = trigger;
	}

	@SuppressWarnings("unchecked")
	public boolean shouldTriggerBuild(AbstractBuild build,
			TaskListener listenerList<Actionactions) {
		PrintStream logger = listener.getLogger();
            AbstractProject p = getDownstreamProject();
                
            if(.isOnlyIfSCMChanges() && !p.pollSCMChanges(listener)) {
            	logger.println(Messages.DownstreamTrigger_NoSCMChanges(p.getName()));
            	return false;
            }
            return true;
else {
			return false;
		}
	}
New to GrepCode? Check out our FAQ X