Bug 373059 - Set up p2.mirrorsURL property in result sites
Summary: Set up p2.mirrorsURL property in result sites
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Nebula (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Johannes Faltermeier CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2012-03-02 05:21 EST by Mickael Istria CLA
Modified: 2021-07-05 11:39 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Wim Jongman CLA 2018-03-23 08:09:19 EDT
Johannes, maybe you also know how to fix this?
Comment 2 Johannes Faltermeier CLA 2018-03-27 04:47:04 EDT
Hi, 
I may have a look. I know that a lot of projects use https://wiki.eclipse.org/WTP/Releng/Tools/addRepoProperties for this. 
But as this needs the information where the update site is uploaded to, I have to check how to integrate it with the current build/build jobs
Comment 3 Wim Jongman CLA 2018-12-23 12:05:43 EST
Moving to 2.2.0
Comment 4 Wim Jongman CLA 2019-06-20 05:54:01 EDT
Moving to next release. Johannes, can you work on this?
Comment 5 Johannes Faltermeier CLA 2019-06-24 03:29:16 EDT
Will do
Comment 6 Wim Jongman CLA 2019-12-22 08:08:40 EST
Moving to 2.4.0. Johannes?
Comment 7 Johannes Faltermeier CLA 2020-02-28 04:16:16 EST
Yes, but today I finally found some time to work on this. 
I have a first isolated draft that takes an existing p2 repository and creates a new repository including the p2.mirrorURL: https://github.com/jfaltermeier/nebula/commit/4fc44fa8c4461ff29a204f74e11c94b2fda1d75a
This could run as part of the release job: 
1. "Mirror" the p2 repository to publish
2. add p2 mirrorURL and recreate p2 repository
3. upload this new repository

We could also change the regular build to (optionally) add the mirror urls. However this way one has to know that this build will be uploaded and where it will be uploaded to, so that the correct metadata is added. 
Having wrong mirrorURLs is worse than having none at all as far as I know. 

---
Problem with the approach on above branch is, that the category.xml is copied and the urls for the target platform as well. So this should be more closely aligned to the actual build to avoid overhead on release day.
Comment 8 Wim Jongman CLA 2020-06-09 15:31:33 EDT
(In reply to Johannes Faltermeier from comment #7)

Thanks, Johannes, is this something we can take into the release?
Comment 9 Laurent CARON CLA 2021-06-25 06:33:46 EDT
Moved to Github; https://github.com/eclipse/nebula/issues/350