Description
Working on develop branch.
- Created a new config qtci-config create -l with only -g token
- Tried to run qtci-run-plugin -c created_config
Received:
gitlab.exceptions.GitlabCreateError: 403: 403 Forbiddensrc/qtci/modules/_fastapi.py:52: in init_dependencies gitlab_obj.register_webhook(tunnel_url) src/qtci/modules/_gitlab.py:70: in register_webhook self.project_webhook = self.project.hooks.create (self.project_webhook_params)
Then removed the created config, created a new config with both -g and -m tokens and tried to run the plugin. Now receiving:
[ INFO]: Hello world, Qt!
[ INFO]: Python version details
{{ major: 3}}
{{ minor: 9}}
{{ release: final}}
[ INFO]: Running Qt CI plugin
{{ config: project_dashboard-plugin}}
{{ project: /Users/saragilbert/Code/dashboard-plugin}}
[ INFO]: Starting Ngrok tunnel
[ INFO]: Tunnel started - OK
{{ url: https://edbe-2001-14ba-3f9-5600-b138-389a-710f-1833.eu.ngrok.io}}
[ INFO]: Connected to GitLab project
[ INFO]: Connected to GitLab project
Traceback (most recent call last):
{{ File "/Users/saragilbert/Code/dashboard-plugin/venv/bin/qtci-run-plugin", line 33, in <module>}}
{{ sys.exit(load_entry_point('qtci', 'console_scripts', 'qtci-run-plugin')())}}
{{ File "/Users/saragilbert/Code/dashboard-plugin/src/qtci_bin/run_plugin.py", line 93, in main}}
{{ qtci.modules.qt_fastapi.init_dependencies(ngrok, g_lab, g_maintainer_lab, g_local)}}
{{ File "/Users/saragilbert/Code/dashboard-plugin/src/qtci/modules/_fastapi.py", line 60, in init_dependencies}}
{{ g_webhook_token = gitlab_obj.get('webhook_token')}}
{{ File "/Users/saragilbert/Code/dashboard-plugin/src/qtci/modules/_gitlab.py", line 97, in get}}
{{ return self.project_webhook_token}}
AttributeError: 'QtGeminiGitlab' object has no attribute 'project_webhook_token'