Failure explanation text not sanitized prior to issuing gerrit review command

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      If the textual description of the build failure cause contains a single quote, then the notification command to gerrit will fail. For example:

      SEVERE: Could not run command gerrit review 42422,1 --message 'Build Failed 
      
      
      http://leeroy-jenkins/job/<some-job> : SUCCESS
      
      http://leeroy-jenkins/job/<some-other-job>: FAILURE
      
      Gradle couldn't successfully build your target. ( http://leeroy-jenkins//job/<some-other-job> )
      
      http://leeroy-jenkins/job/<yet-another-build> : SUCCESS' --verified -1 --code-review 0
      java.io.IOException: Error during sending command
      at 
      
      <stack trace>
      
      Caused by: com.sonymobile.tools.gerrit.gerritevents.ssh.SshException: fatal: "successfully" is not a valid patch set (1)
      at com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionImpl.executeCommand(SshConnectionImpl.java:253)
      
      
      

            Assignee:
            Tomas Westling
            Reporter:
            Christian Goetze
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: