[JIRA] (JENKINS-59931) Print URL of uploaded resource

11 views
Skip to first unread message

valentin.chareyre@kolibree.com (JIRA)

unread,
Oct 25, 2019, 3:59:03 AM10/25/19
to jenkinsc...@googlegroups.com
Valentin Chareyre created an issue
 
Jenkins / Improvement JENKINS-59931
Print URL of uploaded resource
Issue Type: Improvement Improvement
Assignee: Mez Pahlan
Components: appcenter-plugin
Created: 2019-10-25 07:58
Labels: user-experience
Priority: Minor Minor
Reporter: Valentin Chareyre

When uploading an application to App Center, Jenkins outputs a message similar to this:

File found: XXX
Creating an upload resource.
Create upload resource successful.
Uploading app to resource.
Upload app to resource successful.
Committing resource.
Committing resource successful.
Distributing resource.
Distributing resource successful.

 It would be very handful to have the final URL to quickly retrieve the release in the AppCenter web interface : 

Distributing resource successful
Resource available at: https://appcenter.ms/orgs/<organisation_name>/apps/<application_name>/distribute/releases/<release_number>

 


Assumption:  The message Distributing resource successful is printed in the execute function of the DistributeResourceTask class which seems to contain the upload URL.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

valentin.chareyre@kolibree.com (JIRA)

unread,
Oct 25, 2019, 4:00:03 AM10/25/19
to jenkinsc...@googlegroups.com
Valentin Chareyre updated an issue
Change By: Valentin Chareyre
When uploading an application to App Center, Jenkins outputs a message similar to this:
{code:java}

File found: XXX
Creating an upload resource.
Create upload resource successful.
Uploading app to resource.
Upload app to resource successful.
Committing resource.
Committing resource successful.
Distributing resource.
Distributing resource successful.{code}

 It would be very handful to have the final URL to quickly retrieve the release in the AppCenter web interface : 
{noformat}
Distributing resource successful
Resource available at: https://appcenter.ms/orgs/<organisation_name>/apps/<application_name>/distribute/releases/<release_number>{noformat}
 
----
Assumption:  The message *_Distributing resource successful_* is printed in the *_execute_* function of the
_ * _DistributeResourceTask_ java/io/jenkins/plugins/appcenter/task/internal/ * *DistributeResourceTask*_ class which seems to contain the upload URL.

mez.pahlan@gmail.com (JIRA)

unread,
Oct 26, 2019, 11:36:03 AM10/26/19
to jenkinsc...@googlegroups.com
Mez Pahlan assigned an issue to Unassigned
Change By: Mez Pahlan
Assignee: Mez Pahlan

mez.pahlan@gmail.com (JIRA)

unread,
Mar 20, 2020, 8:03:03 PM3/20/20
to jenkinsc...@googlegroups.com
Mez Pahlan commented on Improvement JENKINS-59931
 
Re: Print URL of uploaded resource

Hi Valentin Chareyre sorry for the late reply. I've been looking through the API docs and there isn't an API that give you want you want unfortunately.

After we have uploaded the resource and committed it we get back an object that contains a release url from this API. This unfortunately looks like: v0.1/apps/{owner_name}/{app_name}/releases/{release_id}. Notice this is only an endpoint and not the actual url - it is missing the schema and the host and the first part of it is wrong. I don't want to start guessing what this might be for various users so don't think it is appropriate to infer anything from this unless we can find an official API from Microsoft.

Having said that, if you call that release url as a GET request you get a rather large object back that does contain a direct download url. It looks like it doesn't take you to the download page with the information about the build (release notes, hashes, etc) but will allow you to download the file from AppCenter directly. I can see about exposing that as some sort of build status badge or similar. Would you want me to look into that?

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

valentin.chareyre@kolibree.com (JIRA)

unread,
Mar 24, 2020, 8:50:03 AM3/24/20
to jenkinsc...@googlegroups.com

Hello Mez Pahlan

Thank you for your response.

I've been looking through the API docs and there isn't an API that give you want you want unfortunately

That's unfortunate.... Maybe it's something you can ask to the [Microsoft team?|https://docs.microsoft.com/en-us/appcenter/help

 

Having said that, if you call that release url as a GET request you get a rather large object back that does contain a direct download url. It looks like it doesn't take you to the download page with the information about the build (release notes, hashes, etc) but will allow you to download the file from AppCenter directly. I can see about exposing that as some sort of build status badge or similar. Would you want me to look into that?

 
That would be very nice of you. But don't bother too much.

valentin.chareyre@kolibree.com (JIRA)

unread,
Mar 24, 2020, 8:50:03 AM3/24/20
to jenkinsc...@googlegroups.com
Valentin Chareyre edited a comment on Improvement JENKINS-59931
Hello [~mezpahlan]


Thank you for your response.
{quote}_I've been looking through the API docs and there isn't an API that give you want you want unfortunately_
{quote}
That's unfortunate.... Maybe it's something you can ask to the [Microsoft team?
| [ ]( https://docs.microsoft.com/en-us/appcenter/help )|https://docs.microsoft.com/en-us/appcenter/help ]

 
{quote}Having said that, if you call that release url as a GET request you get a rather large object back that _does_ contain a direct download url. It looks like it doesn't take you to the download page with the information about the build (release notes, hashes, etc) but will allow you to download the file from AppCenter directly. I can see about exposing that as some sort of build status badge or similar. Would you want me to look into that?
{quote}

 
That would be very nice of you. But don't bother too much.

valentin.chareyre@kolibree.com (JIRA)

unread,
Mar 24, 2020, 8:50:04 AM3/24/20
to jenkinsc...@googlegroups.com
Valentin Chareyre edited a comment on Improvement JENKINS-59931
Hello [~mezpahlan]

Thank you for your response.
{quote}_I've been looking through the API docs and there isn't an API that give you want you want unfortunately_
{quote}
That's unfortunate.... Maybe it's something you can ask to the [Microsoft team? [](https://docs.microsoft.com/en-us/appcenter/help) |https://docs.microsoft.com/en-us/appcenter/help]


 
{quote}Having said that, if you call that release url as a GET request you get a rather large object back that _does_ contain a direct download url. It looks like it doesn't take you to the download page with the information about the build (release notes, hashes, etc) but will allow you to download the file from AppCenter directly. I can see about exposing that as some sort of build status badge or similar. Would you want me to look into that?
{quote}
 
That would be very nice of you. But don't bother too much.
Reply all
Reply to author
Forward
0 new messages