Example usage for com.amazonaws.services.codepipeline AWSCodePipelineClient putJobSuccessResult

List of usage examples for com.amazonaws.services.codepipeline AWSCodePipelineClient putJobSuccessResult

Introduction

In this page you can find the example usage for com.amazonaws.services.codepipeline AWSCodePipelineClient putJobSuccessResult.

Prototype

@Override
public PutJobSuccessResultResult putJobSuccessResult(PutJobSuccessResultRequest request) 

Source Link

Document

Represents the success of a job as returned to the pipeline by a job worker.

Usage

From source file:jetbrains.buildServer.codepipeline.CodePipelineBuildListener.java

License:Apache License

private void publishJobSuccess(@NotNull AWSCodePipelineClient codePipelineClient,
        @NotNull AgentRunningBuild build) {
    codePipelineClient
            .putJobSuccessResult(new PutJobSuccessResultRequest().withJobId(myJobID).withExecutionDetails(
                    new ExecutionDetails().withExternalExecutionId(String.valueOf(build.getBuildId()))
                            .withSummary("Build successfully finished")));
}