microsoft / microsoft/azure-devops-rust-api

question: is there a way to trigger a rerun for a certain build?

Open
#181 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
76
Forks
27
Avg merge
9d 20h
Merged PRs (30d)
3

Description

I would like to trigger programatically the rerun failed jobs button
grafik
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()?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

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.

Assessment

Tech stack
rust
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.