I'm trying to find specific errors from Jenkins console output and print them by echo statement. For example, I made a missing in my closing statement " } "As shown in my pipeline script, which produces the error in Jenkins console output as : Expecting '}' found at line 1, column 23 So I need to print out the error with echo statement as shown : Output of error along with these which i have already done
}at a new line, that way it's clearer for you to see if there are closing statements}missing.