- 设置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 测试报告
- 查看生成的报告文件内容