Skip to content

Commit

Permalink
fix: follow redirects
Browse files Browse the repository at this point in the history
Signed-off-by: Akhil Narang <[email protected]>
  • Loading branch information
akhilnarang committed Dec 19, 2023
1 parent e23f06e commit f10fd71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dumpyarabot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ async def cancel_jenkins_job(job_id: str) -> str:
response = await client.post(
f"{settings.JENKINS_URL}/job/dumpyara/{job_id}/stop",
auth=(settings.JENKINS_USER_NAME, settings.JENKINS_USER_TOKEN),
follow_redirects=True,
)
if response.status_code == 200:
return f"Job with ID {job_id} has been cancelled."
Expand Down

0 comments on commit f10fd71

Please sign in to comment.