Skip to content

add project parameter for build api - #486

Closed
donhui wants to merge 2 commits into
devopshq:masterfrom
donhui:build-0829
Closed

add project parameter for build api#486
donhui wants to merge 2 commits into
devopshq:masterfrom
donhui:build-0829

Conversation

@donhui

@donhui donhui commented Aug 29, 2025

Copy link
Copy Markdown
Contributor

fix #452

  • remove the incorrect single quotation mark for builds() method
  • add project parameter for get_build_info() and get_build_runs() methods
  • add project parameter for promote_build() method

Comment thread artifactory.py
url = ""
if self.project:
url = f"?project='{self.project}'"
url = f"?project={self.project}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

not sure that is a necessary change. Might harm project names with spaces

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess it's not possible https://docs.jfrog.com/projects/docs/create-a-project 🤔

harm project names with spaces

Project Key, enter a unique key used to identify your Project resources.
The Project Key is added as a prefix to resources created within the Project. This field is mandatory, supports 2 to 32 lowercase alphanumeric characters and hyphens, and must start with a letter.

Comment thread artifactory.py
build_number = urllib.parse.quote(str(build_number), safe="")
url += f"/{build_number}"
if self.project:
url += f"?project={self.project}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same here

@beliaev-maksim beliaev-maksim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

also tests are missing

Comment thread artifactory.py
}

if self.project:
json_data["prjoect"] = self.project

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
json_data["prjoect"] = self.project
json_data["project"] = self.project

@allburov

Copy link
Copy Markdown
Member

Combined one #503

@allburov allburov closed this Jul 14, 2026
allburov added a commit that referenced this pull request Aug 19, 2026
closes #486 closes #493

Co-Authored-By: Marco <marco.pernigo.07@gmail.com>
Co-Authored-By: donhui <977675308@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

ArtifactoryBuildManager: get_build_runs() and get_build_info() methods do not take the project name into account.

3 participants