microsoft / microsoft/azure-devops-python-api
Can get a task definition by id.
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 684
- Fork
- 218
- Merge trung bình
- 8 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 1
Mô tả
Having a task definition reference by id it's not possibled to have it retrieved.
I'm reffering to TaskDefinitionReference which is present both in task_agent_client.pyand build_client.py.
For example getting a pipeline definition and having mutiple build steps like
{
'environment': {},
'enabled': True,
'continueOnError': False,
'alwaysRun': True,
'displayName': 'Publish Artifact',
'timeoutInMinutes': 0,
'condition': 'succeededOrFailed()',
'task': {
**'id': '2ff763a7-ce83-4e1f-bc89-0ae63477cebe',**
'versionSpec': '1.*',
'definitionType': 'task'
},
'inputs': {
'PathtoPublish': '$(build.artifactstagingdirectory)',
'ArtifactName': 'drop',
'ArtifactType': 'Container',
'TargetPath': '\\\\my\\share\\$(Build.DefinitionName)\\$(Build.BuildNumber)',
'Parallel': 'false',
'ParallelCount': '8',
'FileCopyOptions': ''
}
}
I would like to be able to retrieve all task step related by using the task -> id
Something like task_agent_client.get_task_by_id(task_id= '2ff763a7-ce83-4e1f-bc89-0ae63477cebe') and will return an object of type
class:TaskDefinitionReference <azure.devops.v5_1.task_agent.models.TaskDefinition>
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách đọc TaskDefinitionReference trong task_agent_client.py và build_client.py, sau đó lần theo cách các tham chiếu tác vụ pipeline được truy xuất. Thêm điểm vào task_agent_client.get_task_by_id được yêu cầu để ID tác vụ trả về một đối tượng TaskDefinition, rồi xác minh dữ liệu được trả về dựa trên tham chiếu tác vụ mẫu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- azure, python
- Lĩnh vực
- api, devops
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100