[JIRA] (JENKINS-58699) AppCenter Plugin is unable to read parameters set to `Path To App`

22 views
Skip to first unread message

a.strakh@gmail.com (JIRA)

unread,
Jul 29, 2019, 3:44:02 AM7/29/19
to jenkinsc...@googlegroups.com
Alexey Strakh created an issue
 
Jenkins / Bug JENKINS-58699
AppCenter Plugin is unable to read parameters set to `Path To App`
Issue Type: Bug Bug
Assignee: Mez Pahlan
Components: appcenter-plugin, hockeyapp-plugin
Created: 2019-07-29 07:43
Environment: Mac OS Build Host
Jenkins Server
AppCenter Plugin 0.2.0
Labels: jenkins plugin appcenter
Priority: Major Major
Reporter: Alexey Strakh

If I use relative file path the plugin works but if I pass the same path as a parameter such as $MY_PACKAGE the plugin gives me an error:

```
io.jenkins.plugins.appcenter.AppCenterException: File not found: $MY_PACKAGE
```

I have a dynamic file name and unable to use a predefined value and thus my relative file path value is stored in a variable.

In the hockey app plugin the same path is recognized and used correctly, so when I migrated from hockey to appcenter, the build is broken and blocked.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

mez.pahlan@gmail.com (JIRA)

unread,
Jul 29, 2019, 2:23:02 PM7/29/19
to jenkinsc...@googlegroups.com
Mez Pahlan commented on Bug JENKINS-58699
 
Re: AppCenter Plugin is unable to read parameters set to `Path To App`

Hi Alexey Strakh, thanks for reporting. I'm going to tag this as a duplicate of JENKINS-58329 as some work has already started regarding environment variables. Can you confirm that $MY_PACKAGE is an environment variable and not some other type of variable (which I think will be fine too).

mez.pahlan@gmail.com (JIRA)

unread,
Jul 29, 2019, 2:24:03 PM7/29/19
to jenkinsc...@googlegroups.com

mez.pahlan@gmail.com (JIRA)

unread,
Jul 29, 2019, 2:25:02 PM7/29/19
to jenkinsc...@googlegroups.com
Mez Pahlan closed an issue as Fixed
Change By: Mez Pahlan
Status: Open Closed
Resolution: Fixed

mez.pahlan@gmail.com (JIRA)

unread,
Jul 29, 2019, 2:28:02 PM7/29/19
to jenkinsc...@googlegroups.com
Change By: Mez Pahlan
Status: Closed Fixed but Unreleased
Resolution: Fixed Duplicate

arun.ghanta@ugo.ca (JIRA)

unread,
Oct 31, 2019, 3:10:02 PM10/31/19
to jenkinsc...@googlegroups.com
Change By: Arun Ghanta
Resolution: Duplicate
Status: Fixed but Unreleased Reopened
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

mez.pahlan@gmail.com (JIRA)

unread,
Oct 31, 2019, 3:14:03 PM10/31/19
to jenkinsc...@googlegroups.com
Mez Pahlan closed an issue as Duplicate
Change By: Mez Pahlan
Status: Reopened Closed
Resolution: Duplicate

arun.ghanta@ugo.ca (JIRA)

unread,
Oct 31, 2019, 3:22:02 PM10/31/19
to jenkinsc...@googlegroups.com
Arun Ghanta commented on Bug JENKINS-58699
 
Re: AppCenter Plugin is unable to read parameters set to `Path To App`

Hi Mez! Thank you very much for the AppCenter Jenkins plugin.

Just like Alexey the project that I'm working on generates dynamic file names.
I tried below methods to publish to AppCenter and I'm getting error.

Method 1: [Declare a variable and and call it in the path]

stage('Publish to App Center')
sh '''
filename=$(ls -lt somepath/*.apk |cut -d'/' -f 7)
echo $filename > filename
'''
apkname = readFile 'filename'
appCenter apiToken: 'sometoken', appName: 'some-appname', distributionGroups: 'some-group', notifyTesters: true, ownerName: 'some-owner-name', pathToApp: 'somepath/${apkname}', releaseNotes: 'notes'

Method 2: [Using shell type wild card in the path]

stage('Publish to App Center')
appCenter apiToken: 'sometoken', appName: 'some-appname', distributionGroups: 'some-group', notifyTesters: true, ownerName: 'some-owner-name', pathToApp: 'some//path/.apk', releaseNotes: 'notes'

I get below error for both:

Caused by: java.util.concurrent.ExecutionException: io.jenkins.plugins.appcenter.AppCenterException: File not found:

 

Please suggest any way to come around this one.

Regards,

Arun

 

arun.ghanta@ugo.ca (JIRA)

unread,
Oct 31, 2019, 3:24:02 PM10/31/19
to jenkinsc...@googlegroups.com
Arun Ghanta edited a comment on Bug JENKINS-58699
Hi Mez! Thank you very much for the AppCenter Jenkins plugin.

Just like Alexey the project that I'm working on generates dynamic file names.
I tried below methods to publish to AppCenter and I'm getting error.

*+Method 1: [Declare a variable and and call it in the path]+*


stage('Publish to App Center')
sh '''
filename=$(ls -lt somepath/*.apk |cut -d'/' -f 7)
echo $filename > filename
'''
apkname = readFile 'filename'
appCenter apiToken: 'sometoken', appName: 'some-appname', distributionGroups: 'some-group', notifyTesters: true, ownerName: 'some-owner-name', pathToApp: '*somepath/${apkname}*', releaseNotes: 'notes'


*+Method 2: [Using shell type wild card in the path]+*


stage('Publish to App Center')
appCenter apiToken: 'sometoken', appName: 'some-appname', distributionGroups: 'some-group', notifyTesters: true, ownerName: 'some-owner-name', pathToApp: '*some/*/path/*.apk*', releaseNotes: 'notes'


I get below error for both:

*Caused by: java.util.concurrent.ExecutionException: io.jenkins.plugins.appcenter.AppCenterException: File not found:*


 

Please suggest any way to come around this one.


Regards,

Arun

 

arun.ghanta@ugo.ca (JIRA)

unread,
Oct 31, 2019, 3:27:03 PM10/31/19
to jenkinsc...@googlegroups.com
Arun Ghanta edited a comment on Bug JENKINS-58699
Hi Mez! Thank you very much for the AppCenter Jenkins plugin.

Just like Alexey the project that I'm working on generates dynamic file names.
I tried below methods to publish to AppCenter and I'm getting error.

*+Method 1: [Declare a variable and and call it in the path]+*
{code:java}
stage('Publish to App Center')
sh '''
filename=$(ls -lt somepath/*.apk |cut -d'/' -f 7)
echo $filename > filename
'''
apkname = readFile 'filename'
appCenter apiToken: 'sometoken', appName: 'some-appname', distributionGroups: 'some-group', notifyTesters: true, ownerName: 'some-owner-name', pathToApp: ' * somepath/${apkname} * ', releaseNotes: 'notes'
{code}
*+Method 2: [Using shell type wild card in the path]+*
{code:java}
stage('Publish to App Center')
appCenter apiToken: 'sometoken', appName: 'some-appname', distributionGroups: 'some-group', notifyTesters: true, ownerName: 'some-owner-name', pathToApp: '
* some/*/path/*.apk * ', releaseNotes: 'notes'
{code}
I get below error for both:

*Caused by: java.util.concurrent.ExecutionException: io.jenkins.plugins.appcenter.AppCenterException: File not found:*

 

Please suggest any way to come around this one.

Regards,

Arun

 

mez.pahlan@gmail.com (JIRA)

unread,
Oct 31, 2019, 3:34:02 PM10/31/19
to jenkinsc...@googlegroups.com

Hi Arun Ghanta what you're looking for is not environment variable substitution which was what  was resolved in the issue that this duplicates but rather supporting ANT style glob paths. There's a fix in JENKINS-59528 that you can look out for. It isn't released yet but will be shortly. 

Reply all
Reply to author
Forward
0 new messages