public static void UploadToHockeyApp(this ICakeContext context, FilePath file, HockeyAppUploadSettings settings, FilePath symbolFile = null)
        {
            var uploader = new HockeyAppClient(context.Log);

            settings.ApiToken = settings.ApiToken ??
                                context.Environment.GetEnvironmentVariable(TokenVariable);

            try
            {
                uploader.UploadFile(file, settings, symbolFile);
            }
            catch (Exception e)
            {
                do context.Log.Error(e.Message); while ((e = e.InnerException) != null);

                throw new Exception("Upload to Hockey App failed.");
            }
        }
Beispiel #2
0
 public static HockeyAppUploadResult UploadToHockeyApp(this ICakeContext context, FilePath file, HockeyAppUploadSettings settings)
 => UploadToHockeyApp(context, file, null, settings);
Beispiel #3
0
 public static void UploadToHockeyApp(this ICakeContext context, FilePath file, HockeyAppUploadSettings settings, FilePath symbolFile)
 => UploadToHockeyApp(context, file, symbolFile, settings);
Beispiel #4
0
        public static HockeyAppUploadResult UpdateVersionHockeyApp(this ICakeContext context, FilePath file, FilePath symbolsFile, HockeyAppUploadSettings settings, string versionId)
        {
            settings = settings ?? new HockeyAppUploadSettings();

            var uploader = new HockeyAppClient(context.Log, settings);

            settings.ApiToken = settings.ApiToken ??
                                context.Environment.GetEnvironmentVariable(TokenVariable);

            try
            {
                var upload = uploader.UploadFileToVersion(file, symbolsFile, settings, versionId);
                upload.Wait();

                return(upload.Result);
            }
            catch (Exception e)
            {
                do
                {
                    context.Log.Error(e.Message);
                } while ((e = e.InnerException) != null);

                throw new Exception("Upload to Hockey App failed.");
            }
        }
        public static void UploadToHockeyApp(this ICakeContext context, FilePath file, HockeyAppUploadSettings settings, FilePath symbolFile = null)
        {
            var uploader = new HockeyAppClient(context.Log);

            settings.ApiToken = settings.ApiToken ??
                                context.Environment.GetEnvironmentVariable(TokenVariable);

            try
            {
                uploader.UploadFile(file, settings, symbolFile);
            }
            catch (Exception e)
            {
                do
                {
                    context.Log.Error(e.Message);
                } while ((e = e.InnerException) != null);

                throw new Exception("Upload to Hockey App failed.");
            }
        }