I have developed an angular application, checked in the source codes to gitlab, which trigger the gitlab ci. The job is successful. In the job artifact page, I saw the following folders structure: workspace/public. Inside the public folder, I have the necessary html, javascript, etc.
I try to access using http://xxx.gitlab.io/index.html or even https://xxx.gitlab.io/index.html (where xxx is my gitlab username). I keep getting the below
401
You don't have permission to access the resource.
The resource that you are attempting to access is protected and you don't have the necessary permissions to view it.
This implies that my url is correct, just that I dont have the permission. What kind of permission is it referring to. Am i missing something in my steps?
Seems there can be a few reasons for a dreaded 401. Just in case it can be helpful, I had the exact same 'symptoms'. Job successful and could browse the artifacts. The problem was the job name in the .gitlab-ci.yml was not named 'pages'.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With