Code changed in jenkins
User: Bue Petersen
Path:
pom.xml
src/main/java/org/jenkinsci/plugins/pretestedintegration/scm/git/AccumulatedCommitStrategy.java
src/main/java/org/jenkinsci/plugins/pretestedintegration/scm/git/GitBridge.java
src/test/java/org/jenkinsci/plugins/pretestedintegration/integration/scm/git/CommitMessagesWithDoubleQuotes.java
src/test/java/org/jenkinsci/plugins/pretestedintegration/integration/scm/git/CommitMessagesWithSpecialChars.java
src/test/java/org/jenkinsci/plugins/pretestedintegration/integration/scm/git/CustomIntegrationBranch.java
src/test/java/org/jenkinsci/plugins/pretestedintegration/integration/scm/git/StaticGitRepositoryTestBase.java
src/test/java/org/jenkinsci/plugins/pretestedintegration/integration/scm/git/TestUtilsFactory.java
src/test/resources/JENKINS-28640.md
src/test/resources/JENKINS-28640.zip
src/test/resources/commitMessagesWithDoubleQuotesSingleQuotesMade.md
src/test/resources/commitMessagesWithDoubleQuotesSingleQuotesMade_linux-repo_description.log
src/test/resources/commitMessagesWithDoubleQuotesSingleQuotesMade_linux.sh
src/test/resources/commitMessagesWithDoubleQuotesSingleQuotesMade_linux.zip
src/test/resources/commitMessagesWithDoubleQuotesSingleQuotesMade_windows-repo_description.log
src/test/resources/commitMessagesWithDoubleQuotesSingleQuotesMade_windows.bat
src/test/resources/commitMessagesWithDoubleQuotesSingleQuotesMade_windows.zip
http://jenkins-ci.org/commit/pretested-integration-plugin/a48f690943cb79034717e495706c6428c7e710e4
Log:
JENKINS-28640: Quotation marks in commit msg:
Only related to the accumulated strategy.
Temporary fix for the bug with quotation marks in the commit message
leading to merge failure because of not properly escaped and formatted
command line arguments.
Fix is temporary replacing " (quotation marks) with ' (plings).
The squashed strategy is not affected, as the git command automatically
generated the commit message, where as the plugin creates a look-a-like
squash message, slightly modified, is using accumulated strategy.
Other improvements:
- fixed hard-coded dependency on the maven-hpi-plugin in the pom file,
new version works now
- cleaned few tests from wrong comments, and not clearly formatted error
messages if the tests failed
- renamed test suite for commit message prolems related to quotation
marks to special chars test suite
- shared a useful method from one test suite through test utils class
that can pretty print console output from the job to use for
verification in the tests.
Related to earlier reported problem, that was reproduced
JENKINS-27662.From the log and other information received, the following can be relevant for reproducing the problem:
The merge fails, as it can't understand 'or' which comes from
where the quotation just before build end the commit message given to merge.
I suggest to extend the tests written for
JENKINS-27662.