You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::CodeBuild::Types::Build

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb

Overview

Information about a build.

Instance Attribute Summary collapse

Instance Attribute Details

#arnString

The Amazon Resource Name (ARN) of the build.

Returns:

  • (String)


222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end

#artifactsTypes::BuildArtifacts

Information about the output artifacts for the build.



222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end

#build_completeBoolean

Whether the build has finished. True if completed; otherwise, false.

Returns:

  • (Boolean)


222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end

#build_statusString

The current status of the build. Valid values include:

  • FAILED: The build failed.

  • FAULT: The build faulted.

  • IN_PROGRESS: The build is still in progress.

  • STOPPED: The build stopped.

  • SUCCEEDED: The build succeeded.

  • TIMED_OUT: The build timed out.

Returns:

  • (String)


222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end

#cacheTypes::ProjectCache

Information about the cache for the build.

Returns:



222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end

#current_phaseString

The current build phase.

Returns:

  • (String)


222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end

#end_timeTime

When the build process ended, expressed in Unix time format.

Returns:

  • (Time)


222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end

#environmentTypes::ProjectEnvironment

Information about the build environment for this build.



222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end

#idString

The unique ID for the build.

Returns:

  • (String)


222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end

#initiatorString

The entity that started the build. Valid values include:

  • If AWS CodePipeline started the build, the pipeline's name (for example, codepipeline/my-demo-pipeline).

  • If an AWS Identity and Access Management (IAM) user started the build, the user's name (for example MyUserName).

  • If the Jenkins plugin for AWS CodeBuild started the build, the string CodeBuild-Jenkins-Plugin.

Returns:

  • (String)


222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end

#logsTypes::LogsLocation

Information about the build's logs in Amazon CloudWatch Logs.

Returns:



222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end

#network_interfaceTypes::NetworkInterface

Describes a network interface.



222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end

#phasesArray<Types::BuildPhase>

Information about all previous build phases that are completed and information about any current build phase that is not yet complete.

Returns:



222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end

#project_nameString

The name of the build project.

Returns:

  • (String)


222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end

#sourceTypes::ProjectSource

Information about the source code to be built.



222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end

#source_versionString

Any version identifier for the version of the source code to be built.

Returns:

  • (String)


222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end

#start_timeTime

When the build process started, expressed in Unix time format.

Returns:

  • (Time)


222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end

#timeout_in_minutesInteger

How long, in minutes, for AWS CodeBuild to wait before timing out this build if it does not get marked as completed.

Returns:

  • (Integer)


222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end

#vpc_configTypes::VpcConfig

If your AWS CodeBuild project accesses resources in an Amazon VPC, you provide this parameter that identifies the VPC ID and the list of security group IDs and subnet IDs. The security groups and subnets must belong to the same VPC. You must provide at least one security group and one subnet ID.

Returns:



222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 222

class Build < Struct.new(
  :id,
  :arn,
  :start_time,
  :end_time,
  :current_phase,
  :build_status,
  :source_version,
  :project_name,
  :phases,
  :source,
  :artifacts,
  :cache,
  :environment,
  :logs,
  :timeout_in_minutes,
  :build_complete,
  :initiator,
  :vpc_config,
  :network_interface)
  include Aws::Structure
end