codebuild

This module defines the CodeBuild event handling logics.

class aws_ci_bot.codebuild.CodeBuildEventHandler(bsm: boto_session_manager.manager.BotoSesManager, cb_event: aws_codebuild.notification.CodeBuildEvent, s3_console_url: str, s3_uri: str, build_job_run: aws_codebuild.arn_and_console.BuildJobRun)[source]

Handle CodeBuild event. Determine whether we should post a comment to CodeCommit, what is the message content?

Parameters
  • bsm – where the original event is stored.

  • cb_event – the CodeBuild event object.

  • s3_console_url – where the original event is stored.

  • s3_uri – where the original event is stored.

  • build_job_run – the CodeBuild job run object.