Esempio n. 1
0
        internal void EnqueueBuild(string branchPlanKey)
        {
            try
            {
                string relUri = string.Join(
                    AuthenticatedWebClient.URI_SEPARATOR,
                    REST_API_BASE_URI,
                    string.Format(QUEUE_URI, branchPlanKey));

                string result = AuthenticatedWebClient.Post(
                    mConfig.BambooServer,
                    relUri,
                    mConfig.BambooUser,
                    mConfig.BambooPassword,
                    mQueryParams);
            }
            catch (WebException e)
            {
                mLog.ErrorFormat(
                    "Unable to enqueue build for plan {0}: {1}", branchPlanKey, e.Message);
                mLog.DebugFormat("Stack trace:{0}{1}", Environment.NewLine, e.StackTrace);
                throw;
            }
        }