Details
-
Bug
-
Status: Open (View Workflow)
-
Critical
-
Resolution: Unresolved
-
None
-
Gerrit-Trigger plugin version 2.18.3
Gerrit-Trigger plugin version 2.10.1 on Jenkins ver. 1.523
Description
The gerrit-trigger plugin fails in escaping single quotes in the commit comment.
After I entered the following text as commit comment the mvn call that was triggered by the gerrit-trigger plugin fails with error "The system cannot find the file specified.":
Remove 'Custom' mode from "Connection Settings"
In the output of the jenkins job I could see that double quotes were escaped like: from \"Connection Settings\"
After I removed the single quotes from my comment the job run successful.
Attachments
Issue Links
- is duplicated by
-
JENKINS-47016 Add "Build Started" comments attempt sometimes fails on Gerrit side
-
- Open
-
-
JENKINS-28556 Verification failure when message file contains quote
-
- Closed
-
-
JENKINS-32291 Add "Build Started" comments attempt sometimes fails on Gerrit side
-
- Closed
-
- relates to
-
JENKINS-15074 Wrong type of quoting of gerrit parameters to Jenkins
-
- Open
-
- links to
Still a valid issue, for instance with the default format (single quotes around Build Failed <BUILDS_STATS>)
So with single quotes, it's not possible to have single quotes in the message, and if it is double quotes, then it is not possible to have double quotes in the message.
I would suggest that we escape single quotes by default for BUILD_STATS since the default is to have single quotes.