可以在 pipeline 中使用 debug 命令,在命令行输出更多信息。
示例代码:
pipelines:
default:
- step:
script:
- echo "Running the pipeline"
- npm install
- npm test
artifacts:
- logs/**
- step:
name: Debugging step
script:
- echo "Running the pipeline in debug mode"
- set -xv
- npm install
- npm test
artifacts:
- logs/**