Every Linux step now runs under ci/guard-step.py. The first step that fails, is cancelled or times out marks the pipeline; running steps get SIGTERM (so traps release flock and Buildah state) then SIGKILL, steps that have not started exit at once, and any process a step leaves behind is killed. A pipeline deadline is the last resort. build-linux-agent.sh now prints the lookup error, store configuration and the restore images present when the prepared restore image cannot be found.
25 lines
576 B
YAML
25 lines
576 B
YAML
labels:
|
|
ci: domain-linux-native
|
|
platform: linux/amd64
|
|
|
|
clone:
|
|
- name: git
|
|
image: plugin-git
|
|
settings:
|
|
lfs: false
|
|
|
|
when:
|
|
- event: pull_request
|
|
- event: push
|
|
branch: main
|
|
|
|
# 和 verify 并行:前端构建不依赖后端测试,两个同时跑
|
|
steps:
|
|
- name: web-build
|
|
image: bash
|
|
environment:
|
|
NPM_CONFIG_CACHE: /home/justme/.npm
|
|
commands:
|
|
# node_modules 按锁文件哈希缓存,展示端和管理端并行构建,再检查 CSS,见 ci/web-build.sh
|
|
- python3 ci/guard-step.py web-build 900 bash ci/web-build.sh
|