Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360628 - deploy CI build results from hudson.eclipse.org to a maven repo
Summary: deploy CI build results from hudson.eclipse.org to a maven repo
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Tycho (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 363696 (view as bug list)
Depends on: 360944
Blocks:
  Show dependency tree
 
Reported: 2011-10-12 04:49 EDT by Jan Sievers CLA
Modified: 2021-04-28 16:55 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Sievers CLA 2011-10-12 04:49:21 EDT
right now we don't have a maven repository for tycho SNAPSHOT builds and for sure we need one if we release 0.14.0

My proposal is to deploy to maven central following the guide [1].

Thoughts?

[1] https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-7a.2.PublishSnapshots
Comment 2 Igor Fedorenko CLA 2011-10-12 07:31:14 EDT
For Tycho release artifacts, the easiest way is probably to go through oss.sonatype.org as described in [2]. For snapshots, we can either use maven.eclipse.org or oss.sonatype.org (for consistency with releases).

It is theoretically possible to setup synching of release artifacts from maven.eclipse.org to the central repo, but this is something Eclipse webmaster needs to negotiate with Sonatype. From what I understand, this only makes sense if large number of Eclipse projects are planning to produce Maven artifacts and deploy them to central. For the few Eclipse projects that currently do this, going through one of existing repositories is easier.



[2] https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide
Comment 3 Jan Sievers CLA 2011-10-14 07:19:43 EDT
created bug 360944 to find out how to deploy snapshots to maven.eclipse.org
Comment 4 Jan Sievers CLA 2011-11-16 13:52:46 EST
*** Bug 363696 has been marked as a duplicate of this bug. ***
Comment 5 Tobias Oberlies CLA 2011-11-17 03:30:59 EST
(In reply to comment #4)
> *** Bug 363696 has been marked as a duplicate of this bug. ***
changed title to make it more findable
Comment 6 Igor Fedorenko CLA 2011-12-06 18:02:37 EST
I got the ball rolling with oss.sonatype.org https://issues.sonatype.org/browse/OSSRH-2537. 

In the meantime I've re-enabled Sonatype internal Tycho build to deploy to https://repository.sonatype.org/content/repositories/snapshots/. I'll turn it off again once we have oss.sonatype.org repo setup for Tycho.
Comment 7 Igor Fedorenko CLA 2011-12-06 18:10:05 EST
Forgot to mention, to use Tycho snapshot build add the following to your (parent) pom.xml


<pluginRepositories>
  <pluginRepository>
    <id>tycho-snapshots</id>
    <url>https://repository.sonatype.org/content/repositories/snapshots/</url>
  </pluginRepository>
</pluginRepositories>
Comment 8 Jan Sievers CLA 2011-12-07 03:24:07 EST
(In reply to comment #6)
> I got the ball rolling with oss.sonatype.org

In the light of issues with maven.eclipse.org like bug 365727 and bug 360944,
+1 for sonatype repo for now if it's OK from eclipse IP point of view.

Did you check this with Wayne?
Comment 9 Igor Fedorenko CLA 2011-12-09 07:32:16 EST
Deploying to oss.sonatype.org directly from eclipse hudson apparently violates vendor neutrality [1]. This bugzilla will have to wait until there is existing Maven repository hosting infrastructure at eclipse.



[1] http://dev.eclipse.org/mhonarc/lists/cross-project-issues-dev/msg06861.html
Comment 10 Tobias Oberlies CLA 2011-12-21 11:30:35 EST
(In reply to comment #7)
> Forgot to mention, to use Tycho snapshot build add the following to your
> (parent) pom.xml
Just for the reference: This workaround no longer works. Igor announced the new Sonatype-provided CI build result location in this message [1]

Jan is driving the Eclipse infrastructure based solution, but this is currently blocked by bug 360944.

[1] http://dev.eclipse.org/mhonarc/lists/tycho-dev/msg00421.html
Comment 11 Jan Sievers CLA 2012-02-08 03:14:27 EST
move all bugs to post 0.14.0
Comment 12 Tobias Oberlies CLA 2013-02-25 06:22:09 EST
With the progress on repo.eclipse.org (see bug 394792 and wiki documentation [1]), we should now be able to get this working.

[1] http://wiki.eclipse.org/Services/Nexus#Deploying_artifacts_to_repo.eclipse.org
Comment 13 Jan Sievers CLA 2013-02-25 06:31:58 EST
@Thanh

we would need a new repo created

https://repo.eclipse.org/content/repositories/tycho-snapshots/ 

to deploy tycho SNAPSHOTS to.

Note that for releases we still have to deploy to maven central but let's keep this separate for now.
Comment 14 Tobias Oberlies CLA 2013-02-25 09:12:50 EST
(In reply to comment #12)
Note to self: Igor wants to have changes to the Tycho CI delivery proposed and discussed on the dev&user lists first.
Comment 15 Thanh Ha CLA 2013-02-25 09:19:17 EST
(In reply to comment #13)
> @Thanh
> 
> we would need a new repo created
> 
> https://repo.eclipse.org/content/repositories/tycho-snapshots/ 
> 
> to deploy tycho SNAPSHOTS to.
> 
> Note that for releases we still have to deploy to maven central but let's
> keep this separate for now.

I created the repo tycho-snapshots as requested. I also created a group "tycho" but it only points to tycho-snapshots.

    https://repo.eclipse.org/content/groups/tycho/
Comment 16 Igor Fedorenko CLA 2013-02-25 09:46:28 EST
(In reply to comment #14)
> (In reply to comment #12)
> Note to self: Igor wants to have changes to the Tycho CI delivery proposed
> and discussed on the dev&user lists first.

I strongly believe changes that affect all/most tycho developers and users must be discussed on the mailing lists first. This is not specific to CI or any particular area, this applies to any significant change in tycho dev process or tycho behaviour.
Comment 17 Jan Sievers CLA 2013-03-05 10:25:49 EST
deployment on

http://ci.tesla.io:8080/view/Tycho/job/tycho/

has started to fail again for authentication reasons since yesterday 10 am.

I guess we can get the same, if not better, service level on repo.eclipse.org
Comment 18 Tobias Oberlies CLA 2014-07-11 07:39:44 EDT
Due to repeated problems with the snapshot deployment to oss.sonatype.org (bug 435050), we are now promoting the snapshots deployed by our CI job at Eclipse [1] as the official ones:

<pluginRepositories>
  <pluginRepository>
    <id>tycho-snapshots</id>
    <url>https://repo.eclipse.org/content/repositories/tycho-snapshots/</url>
  </pluginRepository>
</pluginRepositories>

So I suppose we can close this issue.

[1] https://hudson.eclipse.org/tycho/view/CI/
Comment 19 Tobias Oberlies CLA 2014-07-11 08:17:01 EDT
(In reply to comment #18)
> https://repo.eclipse.org/content/repositories/tycho-snapshots/

I've also configures this URL as the source for Tycho snapshots in the Tycho Extras build: http://git.eclipse.org/c/tycho/org.eclipse.tycho.extras.git/commit/?id=3b7c1181d85759c60e95143e691f7aea9e26d00a