I have the following IF condition in my groovy script:
if (git log -1 --pretty=format:'%an' == 'xyz')
Here all i am trying to achieve is that i need to have the value of
git log -1 --pretty=format:'%an'
equate to some string lets say here xyz I can easily do that in shell as below
if [ `git log -1 --pretty=format:'%an'` == "xyz" ]
But unable to get that to work in my groovy IF