Skip to content

The Unified and Autonomous Development Platform

Edit .onedev-buildspec.yml

Robin Shen6538a59f9ae5
diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml
index 52f70f86e6..0b9e448482 100644
--- a/.onedev-buildspec.yml
+++ b/.onedev-buildspec.yml
@@ -268,6 +268,10 @@ jobs:
withSubmodules: true
cloneDepth: 1
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
+ - !UseTemplateStep
+ name: set up maven cache
+ templateName: set up cache
+ condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !CommandStep
name: build
runInContainer: true
@@ -278,7 +282,7 @@ jobs:
useTTY: true
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !TrivyCacheStep
- name: cache
+ name: set up trivy cache
key: trivy
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !RootFSScannerStep