Skip to content

The Unified and Autonomous Development Platform

Edit .onedev-buildspec.yml

Robin Shen66d147c4543d
diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml
index 63eebae026..620038a6b4 100644
--- a/.onedev-buildspec.yml
+++ b/.onedev-buildspec.yml
@@ -14,6 +14,7 @@ jobs:
- mvn test
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
retrieveSource: true
+ cloneDepth: 1
cloneCredential: !DefaultCredential {}
triggers:
- !PullRequestUpdateTrigger {}
@@ -82,7 +83,6 @@ jobs:
- fi
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
retrieveSource: true
- cloneDepth: 1
cloneCredential: !HttpCredential
accessTokenSecret: onedev-token
artifacts: '*.zip *.sh'