Gitlab流水线CI/CD,流水线是跑通了,但是为什么感觉根本没运行我的代码呢
图一是我的代码一部分,图二是流水线的日志,
stages:
- build
image: python
before_script:
- source /etc/profile
- python --version
build_job:
stage: build
script:
- cd ajiekou
- python test_hudon.py
artifacts:
paths:
- test_results.xml
reports:
junit: test_results.xml
# when: manual # 手动触发
tags:
- VM
when: always
# script:
# - echo 'job ========= 完成'