How to compare “Strings” in Jenkins pipeline scripts? Posted on February 3, 2023 by Admin To compare the “String” we can follow the below approach. In the above mentioned code we are comparing the current build status value with the String “UNSTABLE”. And for ‘not equals’ cases we can simply follow