listener.getLogger().println("Last build on " + buildDate);
final String localStream;
if(!useWorkspace){
if (hasStringVariableReference(this.stream)) {
ParametersDefinitionProperty paramDefProp = (ParametersDefinitionProperty) project
.getProperty(ParametersDefinitionProperty.class);
if (paramDefProp == null) {
listener.getLogger().println(
"Polling is not supported when stream name has a variable reference '" + this.stream + "'.");
// as we don't know which stream to check we just state that
// there is no changes
return PollingResult.NO_CHANGES;
}
Map<String, String> keyValues = new TreeMap<String, String>();
/* Scan for all parameter with an associated default values */
for (ParameterDefinition paramDefinition : paramDefProp.getParameterDefinitions()) {
ParameterValue defaultValue = paramDefinition.getDefaultParameterValue();
if (defaultValue instanceof StringParameterValue) {
StringParameterValue strdefvalue = (StringParameterValue) defaultValue;