Method: Codebuild::Project#default_properties

Defined in:
lib/codebuild/project.rb

#default_propertiesObject



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/codebuild/project.rb', line 34

def default_properties
  {
    name: @full_project_name,
    description: @full_project_name,
    artifacts: { type: "NO_ARTIFACTS" },
    service_role: { ref: "IamRole" },
    badge_enabled: true,
    timeout_in_minutes: 20,
    logs_config: {
      cloud_watch_logs: {
        status: "ENABLED",
        # the default log group name is thankfully the project name
      }
    },
    source: {
      type: "GITHUB",
      # location: "", # required
      # git_clone_depth: 1,
      git_submodules_config: { fetch_submodules: true },
      build_spec: build_spec,
      # auth doesnt seem to work, refer to https://github.com/tongueroo/codebuild/blob/master/readme/github_oauth.md
      # auth: {
      #   type: "OAUTH",
      #   # resource: "", # required
      # },
      report_build_status: true,
    }
  }
end