My Jenkinsfile build fails with Syntax error: Unterminated quoted string
This stage which fails:
stage('Clean Volume') {
steps {
sh '''
docker images --format="{{.Repository}} {{.Tag}} {{.ID}}" |
grep -v "latest" |
cut -d ' ' -f3 |
xargs docker rmi -f"
'''
}
}
What is the problem with syntax here?