You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 projectsprojects=core_client.get_projects()
project=next(xforxinprojectsifx.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()?
The text was updated successfully, but these errors were encountered:
Currently no, but I should be able to implement something.
Thanks for the hint that this button triggers a PATCH to /_apis/build/builds/112560?retry=true. Do you know if that works with an empty body? The Rust SDK does currently implement update_build, but the spec says that a Build object is required as the body, which I don't think we should be passing if we are just retrying the build. If it does work without a body, I can fix up the SDK to allow this.
I would like to trigger programatically the rerun failed jobs button
This is actually a PATCH to
/_apis/build/builds/112560?retry=true
Is there something like
rerun_failed()
?The text was updated successfully, but these errors were encountered: