microsoft / microsoft/azure-devops-python-api
Can get a task definition by id.
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 684
- フォーク
- 218
- 平均マージ
- 8日 10時間
- マージ済み PR(30日)
- 1
説明
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>
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず task_agent_client.py と build_client.py の TaskDefinitionReference を読み、次にパイプラインタスクの参照がどのように取得されるかを追跡します。要求されたエントリポイント task_agent_client.get_task_by_id を追加し、タスク ID から TaskDefinition オブジェクトが返されるようにして、返されたデータをタスク参照の例と照合して検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- azure, python
- 領域
- api, devops
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100