Edit .onedev-buildspec.yml
This commit is contained in:
parent
fc4f2fe3f3
commit
3493946595
@ -80,7 +80,7 @@ jobs:
|
|||||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
- !PublishArtifactStep
|
- !PublishArtifactStep
|
||||||
name: Publish Artifacts
|
name: Publish Artifacts
|
||||||
artifacts: forest*
|
artifacts: '**'
|
||||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
retryCondition: never
|
retryCondition: never
|
||||||
maxRetries: 3
|
maxRetries: 3
|
||||||
@ -93,21 +93,11 @@ jobs:
|
|||||||
timeout: 3600
|
timeout: 3600
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
steps:
|
steps:
|
||||||
- !CommandStep
|
- !CheckoutStep
|
||||||
name: delete build version
|
name: Checkout Code
|
||||||
runInContainer: true
|
cloneCredential: !DefaultCredential {}
|
||||||
image: '@script:builtin:maven:determine-docker-image@'
|
withLfs: false
|
||||||
interpreter: !DefaultInterpreter
|
withSubmodules: false
|
||||||
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@'
|
|
||||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
- !BuildImageStep
|
- !BuildImageStep
|
||||||
name: Build Docker Image
|
name: Build Docker Image
|
||||||
|
Loading…
Reference in New Issue
Block a user