Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
None
-
None
-
Gemini development, Gemini development, Onboarding finalization sprint
Description
We should create a utility to add "CI variables" to a namespace or a project repo in Gitlab.
Once CLOUD-280 is done, we should use the above mentioned utility to add CONAN_USER, CONAN_PASS, JFROG_USER, JFROG_PASS to CI Variable.
During the onboarding process - after we are done with the "check_project", we should check if the above mentioned items are added to the Gitlab CI? If no, then we should add them. If they are added and are different from what we have with us, we should ask the user if they want to change it? Or create a copy?
- Master copy of variables are named as:
- QTCLOUD_CONAN_USER
- QTCLOUD_CONAN_PASS
- QTCLOUD_JFROG_USER
- QTCLOUD_JFROG_PASS
- Backup copy (in case we have to overwrite existing ones) are named as:
- QTCLOUD_CONAN_USER_OLD_yyyy_mm_dd
- QTCLOUD_CONAN_PASS_OLD_yyyy_mm_dd
- QTCLOUD_JFROG_USER_OLD_yyyy_mm_dd
- QTCLOUD_JFROG_PASS_OLD_yyyy_mm_dd
Workflow :
- check_credentials - OK
- check_project_access - OK
- TBD in this ticket:
- get_variables
- check_qtcloud_variables_exist
- if_yes_overwrite_and_create_backup
- if_no_create_and_add
- We have to use gitlab python library to do this or then, the gitlab REST API to do this.
Attachments
Issue Links
- is required for
-
CLOUD-299 Onboarding - a script that guides the user step by step to getting started with Qt cloud
- Closed