[
https://issues.jboss.org/browse/JBIDE-20428?page=com.atlassian.jira.plugi...
]
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-...
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-site...
suffix: org.jboss.tools.common.mylyn.feature
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)