| same function is used to upload both .ipa's and .apk def uploadBundleToAppCenter(bundle, appenv) { def pipeline = new com.companyu.jenkins.PipelineUtils(); withCredentials([string(credentialsId: 'appcenter_token_default', variable: 'APPCENTER_API_TOKEN')]) { .(p3-p4 are just some string manipulation to provide a single path to file) appPath = p3[p3.indexOf(p4)+p4.length()+1..-1]; dbgPath = null if (appPath.indexOf('.ipa')>0) { dbgPath = appPath.replaceAll(/\.ipa$/, '.dSYM.zip') } appCenter apiToken: APPCENTER_API_TOKEN, appName: 'appname_'+appenv, distributionGroups: bundle.hockeyapp.teams, ownerName: '-REAL OWNER NAME--', notifyTesters: false, pathToApp: appPath, pathToDebugSymbols: dbgPath, releaseNotes: bundle.hockeyapp.releaseNotes; } } |