From ceac433dc09f90f3f8dca64739388531dd747e29 Mon Sep 17 00:00:00 2001 From: ronger Date: Fri, 30 Sep 2022 16:03:21 +0000 Subject: [PATCH] Edit .onedev-buildspec.yml --- .onedev-buildspec.yml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml index b10714d..c5b8e4b 100644 --- a/.onedev-buildspec.yml +++ b/.onedev-buildspec.yml @@ -44,7 +44,8 @@ jobs: - key: maven-cache path: /root/.m2/repository timeout: 3600 -- name: Build Docker Image +- name: package + jobExecutor: internal steps: - !CheckoutStep name: Checkout Code @@ -77,10 +78,9 @@ jobs: - mvn package useTTY: false condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL - - !BuildImageStep - name: Build Docker Image - tags: rymcu/forest:@build_version@ - publish: false + - !PublishArtifactStep + name: Publish Artifacts + artifacts: forest* condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL retryCondition: never maxRetries: 3 @@ -91,3 +91,20 @@ jobs: - key: maven-cache path: /root/.m2/repository timeout: 3600 +- name: Build Docker Image + steps: + - !BuildImageStep + name: Build Docker Image + tags: rymcu/forest:@build_version@ + publish: false + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + jobDependencies: + - jobName: package + requireSuccessful: true + artifacts: forest* + retryCondition: never + maxRetries: 3 + retryDelay: 30 + cpuRequirement: 250 + memoryRequirement: 256 + timeout: 3600