コード例 #1
0
        public void CodePipelinePollForJobs()
        {
            #region view-any-available-jobs-1449186054484

            var response = client.PollForJobs(new PollForJobsRequest
            {
                ActionTypeId = new ActionTypeId {
                    Version  = "1",
                    Category = "Test",
                    Owner    = "Custom",
                    Provider = "MyJenkinsProviderName"
                },
                MaxBatchSize = 5,
                QueryParam   = new Dictionary <string, string> {
                    { "ProjectName", "MyJenkinsTestProj" }
                }
            });

            List <Job> jobs = response.Jobs;

            #endregion
        }
コード例 #2
0
 private Amazon.CodePipeline.Model.PollForJobsResponse CallAWSServiceOperation(IAmazonCodePipeline client, Amazon.CodePipeline.Model.PollForJobsRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS CodePipeline", "PollForJobs");
     try
     {
         #if DESKTOP
         return(client.PollForJobs(request));
         #elif CORECLR
         return(client.PollForJobsAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }