• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • youtrack-plugin
    • None

      when sending a hashtaged issue id inside a commit's comment, it parses the first id and then sends the rest of the comment string as the command, causing multiple issues:

      1. cannot send command comment to youtrack, since the comment is parsed as the command (even on new line) and thus returns an error.
      2. cannot send multiple commands since all commands are considered as a single command string and thus return an error.
      3. cannot update multiple issues since the other hashtaged ids are also parsed as the command string and thus return an error.

      I tested it with various formats, including those defined for teamcity in the documentation, and all resulted with the above error.
      The bottom line is that the only format I managed to successfully activate is to finish my comment with "#DO-1 fixed". anything else throws an error.

      this should be fixed to allow the above actions. if there is a working format I couldn't find, it should be explained in the documentation.

      Thanks,
      Itai

          [JENKINS-34023] error in parsing comment on git commits

          Code changed in jenkins
          User: Erik Zielke
          Path:
          pom.xml
          src/main/java/org/jenkinsci/plugins/youtrack/ExecuteCommandAction.java
          src/main/java/org/jenkinsci/plugins/youtrack/YouTrackSCMListener.java
          src/main/java/org/jenkinsci/plugins/youtrack/YoutrackIssueUpdater.java
          src/main/java/org/jenkinsci/plugins/youtrack/YoutrackUpdateIssuesRecorder.java
          src/test/java/org/jenkinsci/plugins/youtrack/YouTrackSCMListenerTest.java
          http://jenkins-ci.org/commit/youtrack-plugin/ba5c5226937d1be08f118619bf45c7731924bb78
          Log:
          directly lookup git commit message instead of relying on jenkins changelog - JENKINS-34023

          previously the commit message contained new lines - but does not anymore

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Erik Zielke Path: pom.xml src/main/java/org/jenkinsci/plugins/youtrack/ExecuteCommandAction.java src/main/java/org/jenkinsci/plugins/youtrack/YouTrackSCMListener.java src/main/java/org/jenkinsci/plugins/youtrack/YoutrackIssueUpdater.java src/main/java/org/jenkinsci/plugins/youtrack/YoutrackUpdateIssuesRecorder.java src/test/java/org/jenkinsci/plugins/youtrack/YouTrackSCMListenerTest.java http://jenkins-ci.org/commit/youtrack-plugin/ba5c5226937d1be08f118619bf45c7731924bb78 Log: directly lookup git commit message instead of relying on jenkins changelog - JENKINS-34023 previously the commit message contained new lines - but does not anymore

            erikzielke Erik Zielke
            itaisanders Itai Sanders
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: