I have a variable err = "http code 401"
now I want to do a if condition by reading that variable and if it finds 401 it should echo a message.
Something like,
if (${err}.contains('401')
{
echo "Unauthorized"
}
The above works in java, how to implement the same in groovy.
Help Appreciated!
Aucun commentaire:
Enregistrer un commentaire