GitLab CICD Day 24 - Artifacts 产物
原创
©著作权归作者所有:来自51CTO博客作者qq58490fd3ddf1c的原创作品,请联系作者获取转载授权,否则将追究法律责任
- 设置Artifacts:
variables:
user: eric
pwd: Admin@1234
harbor: http://172.16.128.215:8080
image_hellocat: 172.16.128.215:8080/hive/hellocat
image: denoland/deno
stages:
- test_artfacts
- build
- deploy_qa
- deploy_to_staging
- test
- deploy_to_prod
run_test_artfacts:
stage: deploy_qa
tags:
- shell
script:
- echo "hello test" >> test_report.txt # 模拟生成测试文件
artifacts: # 生成测试报告,在Gitlab上下载查看
paths:
- test_report.txt
- Gitlab下载Artifacts 测试报告
- 查看生成的报告文件内容