Skip to content

Commit 846a39a

Browse files
authored
Merge pull request #7 from Microsoft/users/tedchamb/initial
fix version replace to not append .DRAFT for draft builds. also regen
2 parents 09575fd + c484689 commit 846a39a

44 files changed

Lines changed: 433 additions & 433 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

scripts/ci/version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
version=$1
99

1010
if [ -z ${version} ]; then
11-
version=${BUILD_BUILDID}
11+
version=`expr match "${BUILD_BUILDID}" '\([0-9]*\)'`
1212
fi
1313

1414
if [ -z ${version} ]; then

vsts/vsts/build/v4_1/build_client.py

Lines changed: 183 additions & 183 deletions
Large diffs are not rendered by default.

vsts/vsts/build/v4_1/models/agent_pool_queue.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ class AgentPoolQueue(Model):
1414
1515
:param _links:
1616
:type _links: :class:`ReferenceLinks <build.models.ReferenceLinks>`
17-
:param id: Id of the resource
17+
:param id: The ID of the queue.
1818
:type id: int
19-
:param name: Name of the linked resource (definition name, controller name, etc.)
19+
:param name: The name of the queue.
2020
:type name: str
2121
:param pool: The pool used by this queue.
2222
:type pool: :class:`TaskAgentPoolReference <build.models.TaskAgentPoolReference>`
23-
:param url: Full http link to the resource
23+
:param url: The full http link to the resource.
2424
:type url: str
2525
"""
2626

vsts/vsts/build/v4_1/models/artifact_resource.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ class ArtifactResource(Model):
1414
1515
:param _links:
1616
:type _links: :class:`ReferenceLinks <build.models.ReferenceLinks>`
17-
:param data: The type-specific resource data. For example, "#/10002/5/drop", "$/drops/5", "\\myshare\myfolder\mydrops\5"
17+
:param data: Type-specific data about the artifact.
1818
:type data: str
19-
:param download_url: Link to the resource. This might include things like query parameters to download as a zip file
19+
:param download_url: A link to download the resource.
2020
:type download_url: str
21-
:param properties: Properties of Artifact Resource
21+
:param properties: Type-specific properties of the artifact.
2222
:type properties: dict
2323
:param type: The type of the resource: File container, version control folder, UNC path, etc.
2424
:type type: str
25-
:param url: Link to the resource
25+
:param url: The full http link to the resource.
2626
:type url: str
2727
"""
2828

vsts/vsts/build/v4_1/models/build.py

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -14,85 +14,85 @@ class Build(Model):
1414
1515
:param _links:
1616
:type _links: :class:`ReferenceLinks <build.models.ReferenceLinks>`
17-
:param build_number: Build number/name of the build
17+
:param build_number: The build number/name of the build.
1818
:type build_number: str
19-
:param build_number_revision: Build number revision
19+
:param build_number_revision: The build number revision.
2020
:type build_number_revision: int
21-
:param controller: The build controller. This should only be set if the definition type is Xaml.
21+
:param controller: The build controller. This is only set if the definition type is Xaml.
2222
:type controller: :class:`BuildController <build.models.BuildController>`
23-
:param definition: The definition associated with the build
23+
:param definition: The definition associated with the build.
2424
:type definition: :class:`DefinitionReference <build.models.DefinitionReference>`
2525
:param deleted: Indicates whether the build has been deleted.
2626
:type deleted: bool
27-
:param deleted_by: Process or person that deleted the build
27+
:param deleted_by: The identity of the process or person that deleted the build.
2828
:type deleted_by: :class:`IdentityRef <build.models.IdentityRef>`
29-
:param deleted_date: Date the build was deleted
29+
:param deleted_date: The date the build was deleted.
3030
:type deleted_date: datetime
31-
:param deleted_reason: Description of how the build was deleted
31+
:param deleted_reason: The description of how the build was deleted.
3232
:type deleted_reason: str
33-
:param demands: Demands
33+
:param demands: A list of demands that represents the agent capabilities required by this build.
3434
:type demands: list of :class:`object <build.models.object>`
35-
:param finish_time: Time that the build was completed
35+
:param finish_time: The time that the build was completed.
3636
:type finish_time: datetime
37-
:param id: Id of the build
37+
:param id: The ID of the build.
3838
:type id: int
39-
:param keep_forever:
39+
:param keep_forever: Indicates whether the build should be skipped by retention policies.
4040
:type keep_forever: bool
41-
:param last_changed_by: Process or person that last changed the build
41+
:param last_changed_by: The identity representing the process or person that last changed the build.
4242
:type last_changed_by: :class:`IdentityRef <build.models.IdentityRef>`
43-
:param last_changed_date: Date the build was last changed
43+
:param last_changed_date: The date the build was last changed.
4444
:type last_changed_date: datetime
45-
:param logs: Log location of the build
45+
:param logs: Information about the build logs.
4646
:type logs: :class:`BuildLogReference <build.models.BuildLogReference>`
47-
:param orchestration_plan: Orchestration plan for the build
47+
:param orchestration_plan: The orchestration plan for the build.
4848
:type orchestration_plan: :class:`TaskOrchestrationPlanReference <build.models.TaskOrchestrationPlanReference>`
49-
:param parameters: Parameters for the build
49+
:param parameters: The parameters for the build.
5050
:type parameters: str
5151
:param plans: Orchestration plans associated with the build (build, cleanup)
5252
:type plans: list of :class:`TaskOrchestrationPlanReference <build.models.TaskOrchestrationPlanReference>`
53-
:param priority: The build's priority
53+
:param priority: The build's priority.
5454
:type priority: object
55-
:param project: The team project
55+
:param project: The team project.
5656
:type project: :class:`TeamProjectReference <build.models.TeamProjectReference>`
5757
:param properties:
5858
:type properties: :class:`object <build.models.object>`
59-
:param quality: Quality of the xaml build (good, bad, etc.)
59+
:param quality: The quality of the xaml build (good, bad, etc.)
6060
:type quality: str
61-
:param queue: The queue. This should only be set if the definition type is Build.
61+
:param queue: The queue. This is only set if the definition type is Build.
6262
:type queue: :class:`AgentPoolQueue <build.models.AgentPoolQueue>`
63-
:param queue_options: Queue option of the build.
63+
:param queue_options: Additional options for queueing the build.
6464
:type queue_options: object
65-
:param queue_position: The current position of the build in the queue
65+
:param queue_position: The current position of the build in the queue.
6666
:type queue_position: int
67-
:param queue_time: Time that the build was queued
67+
:param queue_time: The time that the build was queued.
6868
:type queue_time: datetime
69-
:param reason: Reason that the build was created
69+
:param reason: The reason that the build was created.
7070
:type reason: object
71-
:param repository: The repository
71+
:param repository: The repository.
7272
:type repository: :class:`BuildRepository <build.models.BuildRepository>`
73-
:param requested_by: The identity that queued the build
73+
:param requested_by: The identity that queued the build.
7474
:type requested_by: :class:`IdentityRef <build.models.IdentityRef>`
75-
:param requested_for: The identity on whose behalf the build was queued
75+
:param requested_for: The identity on whose behalf the build was queued.
7676
:type requested_for: :class:`IdentityRef <build.models.IdentityRef>`
77-
:param result: The build result
77+
:param result: The build result.
7878
:type result: object
79-
:param retained_by_release: Specifies if Build should be retained by Release
79+
:param retained_by_release: Indicates whether the build is retained by a release.
8080
:type retained_by_release: bool
81-
:param source_branch: Source branch
81+
:param source_branch: The source branch.
8282
:type source_branch: str
83-
:param source_version: Source version
83+
:param source_version: The source version.
8484
:type source_version: str
85-
:param start_time: Time that the build was started
85+
:param start_time: The time that the build was started.
8686
:type start_time: datetime
87-
:param status: Status of the build
87+
:param status: The status of the build.
8888
:type status: object
8989
:param tags:
9090
:type tags: list of str
9191
:param trigger_info: Sourceprovider-specific information about what triggered the build
9292
:type trigger_info: dict
93-
:param uri: Uri of the build
93+
:param uri: The URI of the build.
9494
:type uri: str
95-
:param url: REST url of the build
95+
:param url: The REST URL of the build.
9696
:type url: str
9797
:param validation_results:
9898
:type validation_results: list of :class:`BuildRequestValidationResult <build.models.BuildRequestValidationResult>`

vsts/vsts/build/v4_1/models/build_artifact.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
class BuildArtifact(Model):
1313
"""BuildArtifact.
1414
15-
:param id: The artifact id
15+
:param id: The artifact ID.
1616
:type id: int
17-
:param name: The name of the artifact
17+
:param name: The name of the artifact.
1818
:type name: str
19-
:param resource: The actual resource
19+
:param resource: The actual resource.
2020
:type resource: :class:`ArtifactResource <build.models.ArtifactResource>`
2121
"""
2222

vsts/vsts/build/v4_1/models/build_badge.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
class BuildBadge(Model):
1313
"""BuildBadge.
1414
15-
:param build_id: Build id, if exists that this badge corresponds to
15+
:param build_id: The ID of the build represented by this badge.
1616
:type build_id: int
17-
:param image_url: Self Url that generates SVG
17+
:param image_url: A link to the SVG resource.
1818
:type image_url: str
1919
"""
2020

vsts/vsts/build/v4_1/models/build_definition.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,57 +12,57 @@
1212
class BuildDefinition(BuildDefinitionReference):
1313
"""BuildDefinition.
1414
15-
:param created_date: The date the definition was created
15+
:param created_date: The date the definition was created.
1616
:type created_date: datetime
17-
:param id: Id of the resource
17+
:param id: The ID of the referenced definition.
1818
:type id: int
19-
:param name: Name of the linked resource (definition name, controller name, etc.)
19+
:param name: The name of the referenced definition.
2020
:type name: str
21-
:param path: The path this definitions belongs to
21+
:param path: The folder path of the definition.
2222
:type path: str
23-
:param project: The project.
23+
:param project: A reference to the project.
2424
:type project: :class:`TeamProjectReference <build.models.TeamProjectReference>`
25-
:param queue_status: If builds can be queued from this definition
25+
:param queue_status: A value that indicates whether builds can be queued against this definition.
2626
:type queue_status: object
2727
:param revision: The definition revision number.
2828
:type revision: int
2929
:param type: The type of the definition.
3030
:type type: object
31-
:param uri: The Uri of the definition
31+
:param uri: The definition's URI.
3232
:type uri: str
33-
:param url: Full http link to the resource
33+
:param url: The REST URL of the definition.
3434
:type url: str
3535
:param _links:
3636
:type _links: :class:`ReferenceLinks <build.models.ReferenceLinks>`
3737
:param authored_by: The author of the definition.
3838
:type authored_by: :class:`IdentityRef <build.models.IdentityRef>`
39-
:param draft_of: If this is a draft definition, it might have a parent
39+
:param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition.
4040
:type draft_of: :class:`DefinitionReference <build.models.DefinitionReference>`
41-
:param drafts: If this is not a draft definition, it may have drafts of its own
41+
:param drafts: The list of drafts associated with this definition, if this is not a draft definition.
4242
:type drafts: list of :class:`DefinitionReference <build.models.DefinitionReference>`
4343
:param metrics:
4444
:type metrics: list of :class:`BuildMetric <build.models.BuildMetric>`
4545
:param quality: The quality of the definition document (draft, etc.)
4646
:type quality: object
47-
:param queue:
47+
:param queue: The default queue for builds run against this definition.
4848
:type queue: :class:`AgentPoolQueue <build.models.AgentPoolQueue>`
49-
:param badge_enabled: Indicates whether badges are enabled for this definition
49+
:param badge_enabled: Indicates whether badges are enabled for this definition.
5050
:type badge_enabled: bool
51-
:param build_number_format: The build number format
51+
:param build_number_format: The build number format.
5252
:type build_number_format: str
53-
:param comment: The comment entered when saving the definition
53+
:param comment: A save-time comment for the definition.
5454
:type comment: str
5555
:param demands:
5656
:type demands: list of :class:`object <build.models.object>`
57-
:param description: The description
57+
:param description: The description.
5858
:type description: str
59-
:param drop_location: The drop location for the definition
59+
:param drop_location: The drop location for the definition.
6060
:type drop_location: str
61-
:param job_authorization_scope: Gets or sets the job authorization scope for builds which are queued against this definition
61+
:param job_authorization_scope: The job authorization scope for builds queued against this definition.
6262
:type job_authorization_scope: object
63-
:param job_cancel_timeout_in_minutes: Gets or sets the job cancel timeout in minutes for builds which are cancelled by user for this definition
63+
:param job_cancel_timeout_in_minutes: The job cancel timeout (in minutes) for builds cancelled by user for this definition.
6464
:type job_cancel_timeout_in_minutes: int
65-
:param job_timeout_in_minutes: Gets or sets the job execution timeout in minutes for builds which are queued against this definition
65+
:param job_timeout_in_minutes: The job execution timeout (in minutes) for builds queued against this definition.
6666
:type job_timeout_in_minutes: int
6767
:param latest_build:
6868
:type latest_build: :class:`Build <build.models.Build>`
@@ -72,11 +72,11 @@ class BuildDefinition(BuildDefinitionReference):
7272
:type options: list of :class:`BuildOption <build.models.BuildOption>`
7373
:param process: The build process.
7474
:type process: :class:`BuildProcess <build.models.BuildProcess>`
75-
:param process_parameters: Process Parameters
75+
:param process_parameters: The process parameters for this definition.
7676
:type process_parameters: :class:`ProcessParameters <build.models.ProcessParameters>`
7777
:param properties:
7878
:type properties: :class:`object <build.models.object>`
79-
:param repository: The repository
79+
:param repository: The repository.
8080
:type repository: :class:`BuildRepository <build.models.BuildRepository>`
8181
:param retention_rules:
8282
:type retention_rules: list of :class:`RetentionPolicy <build.models.RetentionPolicy>`

vsts/vsts/build/v4_1/models/build_definition3_2.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,39 +12,39 @@
1212
class BuildDefinition3_2(BuildDefinitionReference):
1313
"""BuildDefinition3_2.
1414
15-
:param created_date: The date the definition was created
15+
:param created_date: The date the definition was created.
1616
:type created_date: datetime
17-
:param id: Id of the resource
17+
:param id: The ID of the referenced definition.
1818
:type id: int
19-
:param name: Name of the linked resource (definition name, controller name, etc.)
19+
:param name: The name of the referenced definition.
2020
:type name: str
21-
:param path: The path this definitions belongs to
21+
:param path: The folder path of the definition.
2222
:type path: str
23-
:param project: The project.
23+
:param project: A reference to the project.
2424
:type project: :class:`TeamProjectReference <build.models.TeamProjectReference>`
25-
:param queue_status: If builds can be queued from this definition
25+
:param queue_status: A value that indicates whether builds can be queued against this definition.
2626
:type queue_status: object
2727
:param revision: The definition revision number.
2828
:type revision: int
2929
:param type: The type of the definition.
3030
:type type: object
31-
:param uri: The Uri of the definition
31+
:param uri: The definition's URI.
3232
:type uri: str
33-
:param url: Full http link to the resource
33+
:param url: The REST URL of the definition.
3434
:type url: str
3535
:param _links:
3636
:type _links: :class:`ReferenceLinks <build.models.ReferenceLinks>`
3737
:param authored_by: The author of the definition.
3838
:type authored_by: :class:`IdentityRef <build.models.IdentityRef>`
39-
:param draft_of: If this is a draft definition, it might have a parent
39+
:param draft_of: A reference to the definition that this definition is a draft of, if this is a draft definition.
4040
:type draft_of: :class:`DefinitionReference <build.models.DefinitionReference>`
41-
:param drafts: If this is not a draft definition, it may have drafts of its own
41+
:param drafts: The list of drafts associated with this definition, if this is not a draft definition.
4242
:type drafts: list of :class:`DefinitionReference <build.models.DefinitionReference>`
4343
:param metrics:
4444
:type metrics: list of :class:`BuildMetric <build.models.BuildMetric>`
4545
:param quality: The quality of the definition document (draft, etc.)
4646
:type quality: object
47-
:param queue:
47+
:param queue: The default queue for builds run against this definition.
4848
:type queue: :class:`AgentPoolQueue <build.models.AgentPoolQueue>`
4949
:param badge_enabled: Indicates whether badges are enabled for this definition
5050
:type badge_enabled: bool
@@ -60,11 +60,11 @@ class BuildDefinition3_2(BuildDefinitionReference):
6060
:type description: str
6161
:param drop_location: The drop location for the definition
6262
:type drop_location: str
63-
:param job_authorization_scope: Gets or sets the job authorization scope for builds which are queued against this definition
63+
:param job_authorization_scope: The job authorization scope for builds which are queued against this definition
6464
:type job_authorization_scope: object
65-
:param job_cancel_timeout_in_minutes: Gets or sets the job cancel timeout in minutes for builds which are cancelled by user for this definition
65+
:param job_cancel_timeout_in_minutes: The job cancel timeout in minutes for builds which are cancelled by user for this definition
6666
:type job_cancel_timeout_in_minutes: int
67-
:param job_timeout_in_minutes: Gets or sets the job execution timeout in minutes for builds which are queued against this definition
67+
:param job_timeout_in_minutes: The job execution timeout in minutes for builds which are queued against this definition
6868
:type job_timeout_in_minutes: int
6969
:param latest_build:
7070
:type latest_build: :class:`Build <build.models.Build>`

0 commit comments

Comments
 (0)