基于GitLabCI/CD流水线实践
目前创新互联公司已为成百上千家的企业提供了网站建设、域名、网络空间、网站托管、企业网站设计、达孜网站维护等服务,公司将坚持客户导向、应用为本的策略,正道将秉承"和谐、参与、激情"的文化,与客户和合作伙伴齐心协力一起成长,共同发展。
Gitlab版本升级GitLab12.9 >12.10.14 > 13.0.0 >13.8.4
https://docs.gitlab.com/omnibus/update/gitlab_13_changes.html
https://forum.gitlab.com/t/omnibus-upgrade-from-12-10-6-to-13-0-6/38737/3
https://forum.gitlab.com/t/packaged-postgresql-error-after-update-from-12-7-to-13/39451
- unning handlers:
- Running handlers complete
- Chef Infra Client finished, 441/1538 resources updated in 03 minutes 19 seconds
- gitlab Reconfigured!
- Checking for an omnibus managed postgresql: OK
- Checking if postgresql['version'] is set: OK
- Checking if we already upgraded: NOT OK
- Checking for a newer version of PostgreSQL to install
- Upgrading PostgreSQL to 12.5
- Checking if PostgreSQL bin files are symlinked to the expected location: OK
- cp /opt/gitlab/embedded/service/gitlab-rails/public/deploy.html /opt/gitlab/embedded/service/gitlab-rails/public/index.html
- Toggling deploy page: OK
- Toggling services:ok: down: alertmanager: 1s, normally up
- ok: down: gitaly: 1s, normally up
- ok: down: gitlab-exporter: 0s, normally up
- ok: down: gitlab-pages: 1s, normally up
- ok: down: grafana: 0s, normally up
- ok: down: logrotate: 0s, normally up
- ok: down: postgres-exporter: 1s, normally up
- ok: down: prometheus: 0s, normally up
- ok: down: redis-exporter: 1s, normally up
- ok: down: sidekiq: 1s, normally up
- ok: down: sshd: 0s, normally up
- Toggling services: OK
- Running stop on postgresql:ok: down: postgresql: 0s, normally up
- Running stop on postgresql: OK
- Symlink correct version of binaries: OK
- Creating temporary data directory: OK
- Initializing the new database: OK
13.8新特性(CI/CD)
使用退出码控制作业的状态
语句:allow_failure:exit_codes
使用allow_failure:exit_codes动态控制作业是否应该允许失败。您可以列出哪些退出代码不被视为失败。该作业因任何其他退出代码而失败。
- test_job_1:
- script:
- - echo "Run a script that results in exit code 1. This job fails."
- - exit 1
- allow_failure:
- exit_codes: 137
- test_job_2:
- script:
- - echo "Run a script that results in exit code 137. This job is allowed to fail."
- - exit 137
- allow_failure:
- exit_codes:
- - 137
- - 255
本文标题:GitLab13.8版本CI/CD部分功能更新
文章来源:http://www.shufengxianlan.com/qtweb/news46/142646.html
网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联