Skip to content

The Unified and Autonomous Development Platform

Edit .onedev-buildspec.yml

Robin Shenbcb51d870726
diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml
index 7f8807e4ae..dd3026338b 100644
--- a/.onedev-buildspec.yml
+++ b/.onedev-buildspec.yml
@@ -1,4 +1,4 @@
-version: 26
+version: 27
jobs:
- name: CI
steps:
@@ -9,6 +9,18 @@ jobs:
withLfs: false
withSubmodules: true
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
+ - !GenerateChecksumStep
+ name: generate pom checksum
+ files: '**/pom.xml'
+ targetFile: checksum
+ condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
+ - !SetupCacheStep
+ name: set up maven cache
+ key: maven-repository-@file:checksum@
+ loadKeys:
+ - maven-repository
+ path: /root/.m2/repository
+ condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !CommandStep
name: detect build version
runInContainer: true
@@ -40,9 +52,6 @@ jobs:
retryCondition: never
maxRetries: 3
retryDelay: 30
- caches:
- - key: maven-cache
- path: /root/.m2/repository
timeout: 3600
- name: Release
steps:
@@ -53,6 +62,18 @@ jobs:
withLfs: false
withSubmodules: true
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
+ - !GenerateChecksumStep
+ name: generate pom checksum
+ files: '**/pom.xml'
+ targetFile: checksum
+ condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
+ - !SetupCacheStep
+ name: set up maven cache
+ key: maven-repository-@file:checksum@
+ loadKeys:
+ - maven-repository
+ path: /root/.m2/repository
+ condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !CommandStep
name: detect version
runInContainer: true
@@ -208,9 +229,6 @@ jobs:
retryCondition: never
maxRetries: 3
retryDelay: 30
- caches:
- - key: maven-cache
- path: /root/.m2/repository
timeout: 3600
- name: Sync Main (GitHub)
steps:
@@ -283,6 +301,18 @@ jobs:
withLfs: false
withSubmodules: true
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
+ - !GenerateChecksumStep
+ name: generate pom checksum
+ files: '**/pom.xml'
+ targetFile: checksum
+ condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
+ - !SetupCacheStep
+ name: set up maven cache
+ key: maven-repository-@file:checksum@
+ loadKeys:
+ - maven-repository
+ path: /root/.m2/repository
+ condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !CommandStep
name: detect version
runInContainer: true
@@ -352,7 +382,4 @@ jobs:
retryCondition: never
maxRetries: 3
retryDelay: 30
- caches:
- - key: maven-cache
- path: /root/.m2/repository
timeout: 3600