Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'ArtifactoryBuildManager' object has no attribute 'rest_post' #334

Closed
donhui opened this issue Feb 11, 2022 · 0 comments · Fixed by #360
Closed

AttributeError: 'ArtifactoryBuildManager' object has no attribute 'rest_post' #334

donhui opened this issue Feb 11, 2022 · 0 comments · Fixed by #360
Labels
Help Wanted We will be glad if somebody proposes a solution via PR

Comments

@donhui
Copy link
Contributor

donhui commented Feb 11, 2022

Hi, I'm trying to execute build promote, code as follows:

from artifactory import ArtifactoryBuildManager
from settings import ARTIFACTORY_URL

if __name__ == "__main__":
    name = "demo"
    number = 4
    arti_build = ArtifactoryBuildManager(ARTIFACTORY_URL)

    arti_build.promote_build(build_name=name, build_number=number, properties={}, ci_user='ci')

I get the error:

AttributeError: 'ArtifactoryBuildManager' object has no attribute 'rest_post'
@allburov allburov added the Help Wanted We will be glad if somebody proposes a solution via PR label Apr 26, 2022
donhui added a commit to donhui/artifactory that referenced this issue Aug 3, 2022
allburov pushed a commit that referenced this issue Aug 8, 2022
* bugfix: make Build Promotion works

fix: #334

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted We will be glad if somebody proposes a solution via PR
Development

Successfully merging a pull request may close this issue.

2 participants