Closed ramyaramdasan closed 3 years ago
Noting for the record that Ramya dug into the issue, and the reason was because the sn_cicd.sys_ci_automation
role only allowed "Apply Remote Changes" and "Run ATF Test Suite", but did not allow "Publish to App Repo".
"Role required: admin, or delegated_developer with Publish To App Repo permission enabled"
Therefore, try delegated dev with "publish to app repo" enabled.
The proposed solution was tried and found working. Thanks @chiarnglin!
All these while, we have been testing the pipeline in ServiceNow provided DPP instances. For first time today, we did a trial run of the pipeline on our organization's live instances. The pipeline threw error at the Publish step. Other Actions like servicenow-ci-cd-apply-changes and servicenow-ci-cd-run-atf-test-suite ran successfully prior to the publish step.
The application that is being published has been in the system for a few weeks now. It was deployed manually to TEST instance from sourcecontrol and Published manually from Studio in TEST until we automated it using the pipeline. Manual publish worked without any issue. Not sure if it makes any difference, we were publishing from main branch until now, but the pipeline will be publishing from the dev branch instead.