Skip to content

Conversation

@mezpahlan
Copy link

@mezpahlan mezpahlan commented Nov 20, 2018

Makes the baseUrl property in pipeline mode optional. Only applies it if the user explicitly wants to override the default HockeyApp service.

@imod
Copy link
Member

imod commented Nov 21, 2018

@mezpahlan I tested the snapshot with this PR and the following is working now:

        hockeyApp applications: [
                                  [
                                    apiToken: 'XXXX', 
                                    downloadAllowed: true, 
                                    filePath: '**/app-ci.apk', 
                                    mandatory: false, 
                                    notifyTeam: false, 
                                    releaseNotesMethod: none(), 
                                    uploadMethod: 
                                    versionCreation(appId: 'YYYY')
                                  ]
                                ], 
                  debugMode: false, 
                  failGracefully: false
      }

but please be aware, that this did fail:

        hockeyApp applications: [
                                  [
                                    apiToken: 'XXXX', 
                                    downloadAllowed: true, 
                                    filePath: '**/app-beta.apk', 
                                    mandatory: false, 
                                    notifyTeam: false, 
                                    releaseNotesMethod: none(), 
                                    uploadMethod: 
                                    versionCreation(appId: 'YYYY')
                                  ]
                                ], 
                  debugMode: false, 
                  failGracefully: false,
                  baseUrlHolder: [baseUrl: 'https://rink.hockeyapp.net']
      }

error was:

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 41: Invalid parameter "baseUrlHolder", did you mean "baseUrl"? @ line 41, column 19.
                     baseUrlHolder: [baseUrl: 'https://rink.hockeyapp.net']
                     ^

@mezpahlan
Copy link
Author

Thanks @imod that's what I'm expecting. When looking at code that was originally causing an issue it looked like there was a needless object called baseUrlHolder that only held a single string so I removed it in favour of the single baseUrl string.

Yes that will mean existing configurations will break, unfortunately. However this is only an issue if you have explicitly overridden the HockeyApp service and are using the pipeline syntax.

I'll look at preparing some migration text before releasing this fix though. There's already text in the wiki page for this plugin but perhaps it can be made clearer.

Thanks for testing.

@mezpahlan mezpahlan merged commit d260e51 into jenkinsci:master Nov 25, 2018
@mezpahlan mezpahlan deleted the bugfix/JENKINS-54576-pipeline-baseurlholder-should-be-optional branch November 25, 2018 12:32
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