My gitlab page can't proceed to deployment eventhough build passed says artifacts are missing. I'm currently following the tutorial from https://about.gitlab.com/features/pages/ and using template https://gitlab.com/pages/plain-html
Please see screenshots: screenshot of job screenshot of compose file
You can checkout my repo here: https://gitlab.com/jairus.jsx/portfolio Any help would be greatly appreciated thanks!
The artifacts are stored by default in /var/opt/gitlab/gitlab-rails/shared/artifacts . Save the file and reconfigure GitLab for the changes to take effect.
By default pipeline artifacts are deleted after 7 days if they are not locked. This feature locks the artifact if it is from the most recent successful pipeline and unlocks any other pipeline artifacts at the same time so they can be deleted at that 7 day mark.
Artifacts are files created as part of a build process that often contain metadata about that build's jobs like test results, security scans, etc. These can be used for reports that are displayed directly in GitLab or can be published to GitLab Pages or in some other way for users to review.
to all experiencing the same error just update your .gitlab-ci.yml
:)
image: alpine:latest
pages:
stage: deploy
script:
- mkdir .public
- cp -r * .public
- mv .public public
artifacts:
paths:
- public
only:
- master
this way, your public folder gets updated everytime you build
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