From 34939465954371d8f62e8eaf0ca96cf45d8bc04d Mon Sep 17 00:00:00 2001 From: ronger Date: Fri, 30 Sep 2022 16:25:29 +0000 Subject: [PATCH] Edit .onedev-buildspec.yml --- .onedev-buildspec.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml index c817872..9f3b9ea 100644 --- a/.onedev-buildspec.yml +++ b/.onedev-buildspec.yml @@ -80,7 +80,7 @@ jobs: condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL - !PublishArtifactStep name: Publish Artifacts - artifacts: forest* + artifacts: '**' condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL retryCondition: never maxRetries: 3 @@ -93,21 +93,11 @@ jobs: timeout: 3600 - name: Build Docker Image steps: - - !CommandStep - name: delete build version - runInContainer: true - image: '@script:builtin:maven:determine-docker-image@' - interpreter: !DefaultInterpreter - commands: - - echo "Detecting project version (may require some time while downloading maven - dependencies)..." - - echo $(mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version - -q -DforceStdout) > buildVersion - useTTY: false - condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL - - !SetBuildVersionStep - name: Set Build Version - buildVersion: '@file:buildVersion@' + - !CheckoutStep + name: Checkout Code + cloneCredential: !DefaultCredential {} + withLfs: false + withSubmodules: false condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL - !BuildImageStep name: Build Docker Image