Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43964

Two Build URLs appearing in JIRA comment

    Details

    • Similar Issues:

      Description

      When build is triggered the following message appears in the comment:

      Build is scheduled for: https://jenkins.url/job/job-name, https://jenkins.url/job/job-name

      Also, the two urls are treated as one link so it goes to an error page. 

        Attachments

          Activity

          Hide
          albertski Albert Jankowski added a comment -

          I had the same set up on a different server and the comment message displayed correctly.  Can't seem to figure out what is causing it. I compared the settings and everything seems to match up.

          Show
          albertski Albert Jankowski added a comment - I had the same set up on a different server and the comment message displayed correctly.  Can't seem to figure out what is causing it. I compared the settings and everything seems to match up.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Wisen Tanasa
          Path:
          src/integrationTest/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTriggerAcceptanceTest.groovy
          src/main/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraCommentReplier.groovy
          http://jenkins-ci.org/commit/jira-trigger-plugin/fed5539f3ba069c7096f1e82ff51252f2b3e427c
          Log:
          JENKINS-43964 Remove square brackets from Jenkins comment replier.

          The square brackets generated interfere with JIRA wiki syntax which
          causes multiple job URLs to be combined to one link.

          Before: Build is scheduled for: http://jenkins.url, http://jenkins.url
          After: Build is scheduled for: http://jenkins.url, http://jenkins.url

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Wisen Tanasa Path: src/integrationTest/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraTriggerAcceptanceTest.groovy src/main/groovy/com/ceilfors/jenkins/plugins/jiratrigger/JiraCommentReplier.groovy http://jenkins-ci.org/commit/jira-trigger-plugin/fed5539f3ba069c7096f1e82ff51252f2b3e427c Log: JENKINS-43964 Remove square brackets from Jenkins comment replier. The square brackets generated interfere with JIRA wiki syntax which causes multiple job URLs to be combined to one link. Before: Build is scheduled for: http://jenkins.url, http://jenkins.url After: Build is scheduled for: http://jenkins.url , http://jenkins.url
          Hide
          ceilfors Wisen Tanasa added a comment -

          The problem of "one link" is fixed in 0.6.3. The root cause of the issue is the square brackets generated by the plugin as it interferes with JIRA wiki syntax.

          Before: Build is scheduled for: [http://jenkins.url, http://jenkins.url]
          After: Build is scheduled for: http://jenkins.url, http://jenkins.url
          

          The "two build URLs" problem seems to be caused by Jenkins not notifying the plugin correctly. This issue can't be reproduced now but can still theoretically happen. The workaround is to restart Jenkins. Please reopen this ticket with all of your Jenkins details and logs if this is still happening.

          This problem has happened in the past for pipeline job as per seen in this commit.

          Show
          ceilfors Wisen Tanasa added a comment - The problem of "one link" is fixed in 0.6.3. The root cause of the issue is the square brackets generated by the plugin as it interferes with JIRA wiki syntax. Before: Build is scheduled for : [http: //jenkins.url, http://jenkins.url] After: Build is scheduled for : http: //jenkins.url, http://jenkins.url The "two build URLs" problem seems to be caused by Jenkins not notifying the plugin correctly. This issue can't be reproduced now but can still theoretically happen. The workaround is to restart Jenkins. Please reopen this ticket with all of your Jenkins details and logs if this is still happening. This problem has happened in the past for pipeline job as per seen in this commit .

            People

            • Assignee:
              ceilfors Wisen Tanasa
              Reporter:
              albertski Albert Jankowski
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: