Edit .onedev-buildspec.yml
This commit is contained in:
parent
f54d56ed9c
commit
0d890c302b
@ -1,4 +1,4 @@
|
|||||||
version: 18
|
version: 19
|
||||||
jobs:
|
jobs:
|
||||||
- name: maven ci
|
- name: maven ci
|
||||||
steps:
|
steps:
|
||||||
@ -38,13 +38,12 @@ jobs:
|
|||||||
retryCondition: never
|
retryCondition: never
|
||||||
maxRetries: 3
|
maxRetries: 3
|
||||||
retryDelay: 30
|
retryDelay: 30
|
||||||
cpuRequirement: 250
|
|
||||||
memoryRequirement: 256
|
|
||||||
caches:
|
caches:
|
||||||
- key: maven-cache
|
- key: maven-cache
|
||||||
path: /root/.m2/repository
|
path: /root/.m2/repository
|
||||||
timeout: 3600
|
timeout: 3600
|
||||||
- name: package
|
- name: package
|
||||||
|
jobExecutor: internal
|
||||||
steps:
|
steps:
|
||||||
- !CheckoutStep
|
- !CheckoutStep
|
||||||
name: Checkout Code
|
name: Checkout Code
|
||||||
@ -81,12 +80,9 @@ jobs:
|
|||||||
name: Publish Artifacts
|
name: Publish Artifacts
|
||||||
artifacts: '**'
|
artifacts: '**'
|
||||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
jobExecutor: internal
|
|
||||||
retryCondition: never
|
retryCondition: never
|
||||||
maxRetries: 3
|
maxRetries: 3
|
||||||
retryDelay: 30
|
retryDelay: 30
|
||||||
cpuRequirement: 250
|
|
||||||
memoryRequirement: 256
|
|
||||||
caches:
|
caches:
|
||||||
- key: maven-cache
|
- key: maven-cache
|
||||||
path: /root/.m2/repository
|
path: /root/.m2/repository
|
||||||
@ -109,8 +105,6 @@ jobs:
|
|||||||
retryCondition: never
|
retryCondition: never
|
||||||
maxRetries: 3
|
maxRetries: 3
|
||||||
retryDelay: 30
|
retryDelay: 30
|
||||||
cpuRequirement: 250
|
|
||||||
memoryRequirement: 256
|
|
||||||
timeout: 3600
|
timeout: 3600
|
||||||
- name: Pull from Github
|
- name: Pull from Github
|
||||||
steps:
|
steps:
|
||||||
@ -129,8 +123,6 @@ jobs:
|
|||||||
retryCondition: never
|
retryCondition: never
|
||||||
maxRetries: 3
|
maxRetries: 3
|
||||||
retryDelay: 30
|
retryDelay: 30
|
||||||
cpuRequirement: 250
|
|
||||||
memoryRequirement: 256
|
|
||||||
timeout: 3600
|
timeout: 3600
|
||||||
- name: Push to GitHub
|
- name: Push to GitHub
|
||||||
steps:
|
steps:
|
||||||
@ -151,6 +143,22 @@ jobs:
|
|||||||
retryCondition: never
|
retryCondition: never
|
||||||
maxRetries: 3
|
maxRetries: 3
|
||||||
retryDelay: 30
|
retryDelay: 30
|
||||||
cpuRequirement: 250
|
timeout: 3600
|
||||||
memoryRequirement: 256
|
- name: test
|
||||||
|
jobExecutor: internal
|
||||||
|
steps:
|
||||||
|
- !CommandStep
|
||||||
|
name: test
|
||||||
|
runInContainer: true
|
||||||
|
image: '@script:builtin:maven:determine-docker-image@'
|
||||||
|
interpreter: !DefaultInterpreter
|
||||||
|
commands:
|
||||||
|
- export ENCRYPTION_KEY=@secret:encryption_key@
|
||||||
|
- ''
|
||||||
|
- env
|
||||||
|
useTTY: false
|
||||||
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
|
retryCondition: never
|
||||||
|
maxRetries: 3
|
||||||
|
retryDelay: 30
|
||||||
timeout: 3600
|
timeout: 3600
|
||||||
|
Loading…
Reference in New Issue
Block a user