Edit .onedev-buildspec.yml
This commit is contained in:
parent
3e0618e035
commit
ceac433dc0
@ -44,7 +44,8 @@ jobs:
|
|||||||
- key: maven-cache
|
- key: maven-cache
|
||||||
path: /root/.m2/repository
|
path: /root/.m2/repository
|
||||||
timeout: 3600
|
timeout: 3600
|
||||||
- name: Build Docker Image
|
- name: package
|
||||||
|
jobExecutor: internal
|
||||||
steps:
|
steps:
|
||||||
- !CheckoutStep
|
- !CheckoutStep
|
||||||
name: Checkout Code
|
name: Checkout Code
|
||||||
@ -77,10 +78,9 @@ jobs:
|
|||||||
- mvn package
|
- mvn package
|
||||||
useTTY: false
|
useTTY: false
|
||||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
- !BuildImageStep
|
- !PublishArtifactStep
|
||||||
name: Build Docker Image
|
name: Publish Artifacts
|
||||||
tags: rymcu/forest:@build_version@
|
artifacts: forest*
|
||||||
publish: false
|
|
||||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
retryCondition: never
|
retryCondition: never
|
||||||
maxRetries: 3
|
maxRetries: 3
|
||||||
@ -91,3 +91,20 @@ jobs:
|
|||||||
- key: maven-cache
|
- key: maven-cache
|
||||||
path: /root/.m2/repository
|
path: /root/.m2/repository
|
||||||
timeout: 3600
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user