From 3e0618e035893fc24cacd9cfe42af9dd9afef36c Mon Sep 17 00:00:00 2001 From: ronger Date: Fri, 30 Sep 2022 15:05:51 +0000 Subject: [PATCH] Edit .onedev-buildspec.yml --- .onedev-buildspec.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml index 438a56f..b10714d 100644 --- a/.onedev-buildspec.yml +++ b/.onedev-buildspec.yml @@ -74,12 +74,12 @@ jobs: image: '@script:builtin:maven:determine-docker-image@' interpreter: !DefaultInterpreter commands: - - mvn package -P dev + - mvn package useTTY: false condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL - !BuildImageStep name: Build Docker Image - tags: rymcu/@project_name@:@build_version@ + tags: rymcu/forest:@build_version@ publish: false condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL retryCondition: never @@ -87,4 +87,7 @@ jobs: retryDelay: 30 cpuRequirement: 250 memoryRequirement: 256 + caches: + - key: maven-cache + path: /root/.m2/repository timeout: 3600