question: is there a way to trigger a rerun for a certain build?
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
Research direction
Start in the build client around the existing build retrieval methods and compare the requested PATCH endpoint, /_apis/build/builds/112560?retry=true, with available operations. The work is done when the Rust API exposes an operation equivalent to rerun_failed() and its behavior is covered by the project's relevant tests.
Written by the indexing model from the issue text.
Description
I would like to trigger programatically the rerun failed jobs button
This is actually a PATCH to /_apis/build/builds/112560?retry=true
credentials = BasicAuthentication("", personal_access_token)
connection = Connection(base_url=organization_url, creds=credentials)
build_client = connection.clients.get_build_client()
# Get the first page of projects
projects = core_client.get_projects()
project = next(x for x in projects if x.name == "myorg")
build, *_ = build_client.get_builds( project=project.id, build_ids=[112560])
build.rerun_failed() # what I would like to do
Is there something like rerun_failed()?
- Dominant language
- Rust
- Stars
- 76
- Forks
- 27
- Avg merge
- 6d 8h
- Merged PRs (30d)
- 2
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/azure-devops-rust-api
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
microsoft/azure-devops-rust-api#835 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
microsoft/azure-devops-rust-api#590 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
microsoft/azure-devops-rust-api#552 · 1 reaction ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 30/100
microsoft/azure-devops-rust-api#309 · 1 comment · 2 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
microsoft/azure-devops-rust-api#74 · 3 comments ·
All issues in microsoft/azure-devops-rust-api
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
trailofbits/dylint#2107 ·
Maintainers usually reply within 1 day
-
area:cli bug good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
arrays_zip with two same-named inputs fails with "ArrowArray struct has 2 children (expected 1)"Openbug requires-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/datafusion-comet#6251 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug false-positive harper-core linting
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Automattic/harper#4471 ·
Maintainers usually reply within 1 day