Skip to content

AttributeError: 'int' object has no attribute 'name' #1

Description

@Ray57468260

I run command python3 create_webhooks.py
and it return

Traceback (most recent call last):
  File "create_webhooks.py", line 48, in <module>
    print("\033[1:32mCreating hook for:\033[1;m", project.name)
AttributeError: 'int' object has no attribute 'name'

I found that is because variable project remains 0 as name of repos( which is cloudassign) is different from name of job(which is master).
I create jenkins job by running python3 create_master_job.py
I wonder whether it is a bug, or I make something wrong?
Thx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions