From c5cefcb1650a36f7fc5f7e551f7204dbb3dc5d07 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Mon, 21 May 2012 17:24:00 -0700 Subject: [PATCH] documenting what this method does --- core/src/main/java/hudson/model/ParameterValue.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/src/main/java/hudson/model/ParameterValue.java b/core/src/main/java/hudson/model/ParameterValue.java index 0d893be76e..8489858132 100644 --- a/core/src/main/java/hudson/model/ParameterValue.java +++ b/core/src/main/java/hudson/model/ParameterValue.java @@ -259,6 +259,15 @@ public abstract class ParameterValue implements Serializable { } /** + * Controls where the build (that this parameter is submitted to) will happen. + * + * @return + * null to run the build where it normally runs. If non-null, this will + * override {@link AbstractProject#getAssignedLabel()}. If a build is + * submitted with multiple parameters, the first one that returns non-null + * from this method will win, and all others won't be consulted. + * + * * @since 1.414 */ public Label getAssignedLabel(SubTask task) {