Hello,
Is there a way to set a variable with an integer value from a step log?
i.e.
${
groovy:
import com.pmease.quickbuild.variable.*
import com.pmease.quickbuild.Context;
def choices = vars.getValue("moduleModified");
String[] modules = choices.split(',');
int count = modules.length;
vars.getValue("ModuleModifiedCount").setValue(count);
return count;
}
where moduleModifiedCount is a 'do not prompt' variable.
I get the error: No signature of method: java.lang.String.setValue() is applicable for argument types: (java.lang.String) values: [3]
And when i use 'vars.getIntValue("ModuleModifiedCount").setValue(count);
Error: No signature of method: com.pmease.quickbuild.variable.VariableAccessor.getIntValue() is applicable for argument types: (java.lang.String) values: [ModuleModifiedCount]
First time working with groovy and syntaxes with groovy, a bit confusing, any help would be great!
Thanks!