Try to print the value of the action variable to check tha is correct, also use 
the Elvis operator.

echo “Action: “ + action + “ class: “ + action?.class
If("RobotBuildAction".equals(action?.class?.simpleName))

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d5b8967e-97c6-4bfa-a211-90bb6fb10737%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to