Support pre-releases and platform-specific extensions on OpenVSX#2769
Conversation
Currently, for pre-releases, we do not package a universal vsix, since we can directly use
So if we're sure ovsx supports sth like |
I add this comment just to indicate that IMO the stash step is not necessary. since pre-release versions will not be uploaded to jboss and vsix files will be excluded in Update: when reviewing, I found you also removed the stash step in the commit, that's the point. :) |
CsCherrYY
left a comment
There was a problem hiding this comment.
The changes LGTM overall, just a question about stashing step.
|
|
||
| // for pre-release versions, vsixs are not stashed and kept in project folder | ||
| if (publishToMarketPlace.equals('true') || publishToOVSX.equals('true')) { | ||
| unstash 'platformVsix' |
There was a problem hiding this comment.
If the stash step is used to upload vsixs to jboss only, I'm considering if we can move this unstash step under
Line 59 in f564e3d
packageExtensions() behaves consistent between release and pre-release: in both of the two cases, we keep all platform specific vsixs in the folder.
There was a problem hiding this comment.
I'll make the change. I thought maybe there was some reason the stash was happening for normal releases (and not pre-releases). Maybe the publish call would be affected by their presence or something like that. If not, we can definitely move it out.
There was a problem hiding this comment.
I guess so, looks like a convenient way to store/recover all platfrom vsixs, since the generic vsix will be in the same folder at that time.
Anyway, I think it's clear enough now :)
- Refactor the Jenkinsfile for simplicity - There should only be 2 calls to vsce/ovsx . One call to publish the generic version, and another to package the platform-specific versions (in a for-loop) - The logic to publish pre-release versions should be done transparently - When publishing a pre-release, all package specific vsixs should embed that data at package-time Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
f564e3d to
ccccd11
Compare
Closes Add prerelease and platform-specific publishing for Open VSX #2587 (specifically obsoleting it by simplifying the Jenkinsfile)
Refactor the Jenkinsfile for simplicity
There should only be 2 calls to vsce/ovsx . One call to publish the generic version, and another to package the platform-specific versions (in a for-loop)
The logic to publish pre-release versions should be done transparently
When publishing a pre-release, all package specific vsixs should embed that data at package-time
Signed-off-by: Roland Grunberg rgrunber@redhat.com
CC @CsCherrYY for a review and some questions since I'm changing things slightly.
// for pre-release versions we only package platform specific extensions. The current change will publish a universal vsix on the platform we don't support (same as for a regular release). Is there a reason we avoided doing this in pre-releases ? Is it ok if we do it ? The--pre-releaseflag just adds itself onto the regularvsce publish/vsce packagecalls so it becomes easier if they all do the same thing.// for pre-release versions, vsixs are not stashed and kept in project folder. Is this still needed ? I've kept it for now so I just ask to see if I can further simplify things.