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

ProjectBuild does not have project_id needed for artifacts() #132

Closed
btashton opened this issue Jul 28, 2016 · 2 comments
Closed

ProjectBuild does not have project_id needed for artifacts() #132

btashton opened this issue Jul 28, 2016 · 2 comments

Comments

@btashton
Copy link

The ProjectBuild object is missing the project_id attribute that it uses when it makes the call to the gitlab API

Traceback (most recent call last):
File "gitlabtest.py", line 115, in
build.artifacts(streamed=True, action=saver)
File "{SCRUB}/python-gitlab/gitlab/objects.py", line 927, in artifacts
url = '/projects/%s/builds/%s/artifacts' % (self.project_id, self.id)
AttributeError: 'ProjectBuild' object has no attribute 'project_id'

@gpocentek
Copy link
Contributor

Hi,

I've not been able to reproduce the problem. Could you give me a bit more information: python version, python-gitlab version (master I guess), and how did you build your build object?

Thanks

@gpocentek
Copy link
Contributor

I hit a similar problem on another type of resource, the problem comes from the creation of resources using the _raw_list method.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants