Edit .onedev-buildspec.yml
This commit is contained in:
parent
3e0618e035
commit
ceac433dc0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user