[JIRA] [core] (JENKINS-19760) Long hyperlinks in build description not displayed correctly on project page when using Markdown syntax

2014-09-08 Thread sami.salo...@nsn.com (JIRA)














































Sami Salonen
 commented on  JENKINS-19760


Long hyperlinks in build description not displayed correctly on project page when using Markdown syntax















This issue is about build descriptions only. I have not tested setting project descriptions. Build descriptions are visible on project page (Build History table) and naturally on the build page itself. Displaying build descriptions in Build History table (project page) seems to be the problem here.

Here is a sample shell script that sets the build description during the build.


jcli="ssh -p port jenkins host"

function get_first_link()
{
  local text="first"
  local url="" class="code-quote">"http://x.x.x.x/x/x/x/x?zzz=yyyaaa=bbbccc=dddeee=123"
  # this does not work:
  echo "[$text]($url)"
  # this works:
  # echo "a\ href="">$url\"$text/a"
}

function get_second_link()
{
  this is similar to get_first_link
}

first=$( get_first_link )
second=$( get_second_link )
desc="$first\ $second"
$jcli set-build-description "$JOB_NAME" "$BUILD_NUMBER" "$desc"




























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [core] (JENKINS-19760) Long hyperlinks in build description not displayed correctly on project page when using Markdown syntax

2014-09-08 Thread dan...@beckweb.net (JIRA)














































Daniel Beck
 commented on  JENKINS-19760


Long hyperlinks in build description not displayed correctly on project page when using Markdown syntax















Thanks, now it's clear that it's about the automatic truncating of build descriptions in the history widget.

hudson/widgets/HistoryWidget/entry.jelly calls app.markupFormatter.translate(build.truncatedDescription) and Run.getTruncatedDescription operates on the raw text when determining where to truncate, so the markup formatter receives an incomplete format string.

Should probably add MarkupFormatter.translateAndTruncate(String markup, Writer output, int maxLength) for this case.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [core] (JENKINS-19760) Long hyperlinks in build description not displayed correctly on project page when using Markdown syntax

2014-09-02 Thread dan...@beckweb.net (JIRA)














































Daniel Beck
 commented on  JENKINS-19760


Long hyperlinks in build description not displayed correctly on project page when using Markdown syntax















Could you provide a sample description that can be set as a project description and that demonstrates the problem?



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.