[jbosstools-issues] [JBoss JIRA] (JBIDE-20428) Matrix jobs: Unable to report download statistics due to invalid URL

Nick Boldt (JIRA) issues at jboss.org
Tue Aug 11 15:20:02 EDT 2015


    [ https://issues.jboss.org/browse/JBIDE-20428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13097430#comment-13097430 ] 

Nick Boldt commented on JBIDE-20428:
------------------------------------

The WHOLE URL comes from p2StatsURL property.

Thus:

{code}
http://download.jboss.org/jbosstools/usage/installs/
jbosstools-build-sites.aggregate.child-sites_4.3.mars/jdk=jdk1.8,label_exp=(RHEL6||RHEL7||beaker||jboss-prod)&&!ia64&&!ppc64&&!rhts,projectName=central/
4.3.0-SNAPSHOT/
Beta2/
Beta2-v20150726-0459-B47/
{code}
is
{code}
http://download.jboss.org/jbosstools/usage/installs/
{JOB_NAME}/
{project.version}/
{BUILD_ALIAS}/
{buildQualifier}/
{code}

Here's the code that does that today, before my PR:

https://github.com/jbosstools/jbosstools-build-sites/pull/201/files#diff-20667ea3226e581e7a22471dd8678a54L38

The problem is that Jenkins appends the matrix params into the JOB_NAME variable, and Eclipse can't handle a URL of this form without escaping characters.

{code}
jdk=jdk1.8,label_exp=(RHEL6||RHEL7||beaker||jboss-prod)&&!ia64&&!ppc64&&!rhts,projectName=central
{code}

So, instead of bothering to include this unneeded metadata, we just use "\{snapshotLocation}-site", which resolves to "core-site" "coretests-site" "earlyaccess-site" and "central-site". Shorter and won't break when using matrix jobs.

> Matrix jobs: Unable to report download statistics due to invalid URL
> --------------------------------------------------------------------
>
>                 Key: JBIDE-20428
>                 URL: https://issues.jboss.org/browse/JBIDE-20428
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: build, usage
>    Affects Versions: 4.3.0.Beta2
>            Reporter: Nick Boldt
>            Assignee: Nick Boldt
>             Fix For: 4.3.0.CR1
>
>
> For matrix job output, we get errors like this when trying to track download stats:
> {code}
>    [p2.dir] !MESSAGE Unable to report download statistics due to invalid URL: http://download.jboss.org/jbosstools/usage/installs/jbosstools-build-sites.aggregate.child-sites_4.3.mars/jdk=jdk1.8,label_exp=(RHEL6||RHEL7||beaker||jboss-prod)&&!ia64&&!ppc64&&!rhts,projectName=central/4.3.0-SNAPSHOT/Beta2/Beta2-v20150726-0459-B47/ suffix: org.jboss.tools.common.mylyn.feature
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list