Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script to push p2 artifact #192

Merged
merged 1 commit into from
Jul 31, 2018
Merged

Add script to push p2 artifact #192

merged 1 commit into from
Jul 31, 2018

Conversation

testforstephen
Copy link
Contributor

Signed-off-by: Jinbo Wang [email protected]

I didn't find any existing jenkins plugin to deploy to bintray, so add a script to push the p2 artifacts to bintray.

The index page https://dl.bintray.com/vscjavaci/javadebug/ will show the latest version:
image

The sub path https://dl.bintray.com/vscjavaci/javadebug/releases will list the history:
image

@yaohaizh
Copy link
Contributor

Can we directly call maven task/plugin to deploy theses?

@testforstephen
Copy link
Contributor Author

@yaohaizh This is a good question. It pushes me to look more into the bintray integration. And the existing bintray maven plugins mainly take bintray as maven central (Just like Nexus Sonatype repository manager). If we are deploying our product as maven artifacts, these maven plugins are definitely recommended.

But our target is deploying as p2 artifacts, whose structure is a little different with maven artifacts, and most of maven plugins don't have enough support for p2. The closest maven plugin i found is https://github.com/random-maven/bintray-maven-plugin, which has special support for p2 upload. The plugin supports uploading folder content, such as eclipse p2 repository, to fixed path. But the limitation is that it only allows to upload the p2 to one fixed path. In our case, we need upload the p2 artifacts to two places, one is the latest place, another is the history versions. The REST API solution can help us to achieve that. I prefer to keep the solution.

@testforstephen testforstephen merged commit 17b5024 into master Jul 31, 2018
@testforstephen testforstephen deleted the jinbo_p2 branch July 31, 2018 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants