floci-io/floci · error · AwsException

ActionExecutionFailed

ActionExecutionFailed

Error message

CodeBuild build ${buildId} finished with ${buildStatus}

What it means

Error "CodeBuild build ${buildId} finished with ${buildStatus}" thrown in floci-io/floci.

Source

Thrown at src/main/java/io/github/hectorvent/floci/services/codepipeline/CodePipelineService.java:839

        state.setExternalExecutionId("s3://" + bucket + "/" + objectKey);
    }

    private void executeCodeBuild(CodePipelineExecution execution, JsonNode action,
                                  ActionExecution state) throws InterruptedException {
        String projectName = action.path("configuration").path("ProjectName").asText(null);
        Build build = codeBuildService.startBuild(execution.getRegion(), execution.getAccountId(), projectName,
                null, null, null, null, null, null, null);
        state.setExternalExecutionId(build.getId());
        while (!Boolean.TRUE.equals(build.getBuildComplete())) {
            if (execution.isStopRequested()) {
                codeBuildService.stopBuild(execution.getRegion(), build.getId());
                break;
            }
            TimeUnit.MILLISECONDS.sleep(POLL_INTERVAL_MS);
            build = codeBuildService.getBuild(execution.getRegion(), build.getId());
        }
        if (!"SUCCEEDED".equals(build.getBuildStatus())) {
            throw new AwsException("ActionExecutionFailed",
                    "CodeBuild build " + build.getId() + " finished with " + build.getBuildStatus(), 400);
        }
    }

    private void executeCodeDeploy(CodePipelineExecution execution, JsonNode action,
                                   ActionExecution state) throws InterruptedException {
        JsonNode config = action.path("configuration");
        Map<String, Object> revision = null;
        JsonNode input = action.path("inputArtifacts").path(0);
        if (!input.isMissingNode()) {
            revision = Map.of("revisionType", "S3",
                    "s3Location", Map.of("bucket", artifactBucket(action), "key", input.path("name").asText()));
        }
        String deploymentId = codeDeployService.createDeployment(
                execution.getRegion(), config.path("ApplicationName").asText(),
                config.path("DeploymentGroupName").asText(), null, revision, "CodePipeline execution");
        state.setExternalExecutionId(deploymentId);
        Deployment deployment = codeDeployService.getDeployment(execution.getRegion(), deploymentId);

View on GitHub (pinned to 62ff490619)

Solutions

  1. Inspect the CodeBuild build logs to diagnose the failure and fix the build.

When it happens

Trigger: Thrown at src/main/java/io/github/hectorvent/floci/services/codepipeline/CodePipelineService.java:839 when the library encounters an invalid state.

Common situations: Occurs when a CodeBuild action in a pipeline finishes with a non-succeeded build status. Inspect the CodeBuild build logs and fix the build.


AI-assisted analysis of floci-io/floci@62ff490619 (2026-08-14). Data as JSON: /api/errors/62ca953b64bd4588. Report an issue: GitHub.