Skip to content

Conversation

@alexec
Copy link
Contributor

@alexec alexec commented Nov 17, 2025

Work around broken base URL by constructing Build.Base and polling it. Replace direct job.GetBuild calls with getJenkinsBuild and add error handling. Add errors and strconv imports.

Work around broken base URL by constructing Build.Base and polling it.
Replace direct job.GetBuild calls with getJenkinsBuild and add error
handling. Add errors and strconv imports.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a workaround for a broken base URL issue in the gojenkins library by adding a new getJenkinsBuild helper function that manually constructs the build URL and polls it directly.

  • Adds getJenkinsBuild helper function to work around broken base URL in the gojenkins library
  • Replaces direct job.GetBuild calls in getBuild and getBuildLog functions with the new helper
  • Cleans up trailing whitespace in duration-related files

Reviewed Changes

Copilot reviewed 1 out of 3 changed files in this pull request and generated 3 comments.

File Description
main.go Adds new getJenkinsBuild helper function with manual URL construction and updates getBuild and getBuildLog to use it; adds errors and strconv imports
duration.go Removes trailing whitespace
duration_test.go Removes trailing whitespace

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@alexec alexec marked this pull request as ready for review November 17, 2025 01:09
@alexec alexec enabled auto-merge (squash) November 17, 2025 01:09
@alexec alexec merged commit db07213 into main Nov 17, 2025
1 check passed
@alexec alexec deleted the fix-path branch November 17, 2025 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants