diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml index 8891a89..9f28fb8 100644 --- a/.onedev-buildspec.yml +++ b/.onedev-buildspec.yml @@ -45,7 +45,6 @@ jobs: path: /root/.m2/repository timeout: 3600 - name: package - jobExecutor: internal steps: - !CheckoutStep name: Checkout Code @@ -82,6 +81,7 @@ jobs: name: Publish Artifacts artifacts: '**' condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + jobExecutor: internal retryCondition: never maxRetries: 3 retryDelay: 30 @@ -112,3 +112,45 @@ jobs: cpuRequirement: 250 memoryRequirement: 256 timeout: 3600 +- name: Pull from Github + steps: + - !PullRepository + name: Pull from GitHub + remoteUrl: https://github.com/ronger-x/forest + syncToChildProject: false + passwordSecret: access_token + refs: refs/heads/* refs/tags/* + withLfs: false + force: false + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + triggers: + - !ScheduleTrigger + cronExpression: 0 0 1 * * ? + retryCondition: never + maxRetries: 3 + retryDelay: 30 + cpuRequirement: 250 + memoryRequirement: 256 + timeout: 3600 +- name: Push to GitHub + steps: + - !PushRepository + name: Push to GitHub + remoteUrl: https://github.com/ronger-x/forest + passwordSecret: access_token + withLfs: false + force: false + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + triggers: + - !BranchUpdateTrigger + branches: master + projects: forest + - !TagCreateTrigger + branches: master + projects: forest + retryCondition: never + maxRetries: 3 + retryDelay: 30 + cpuRequirement: 250 + memoryRequirement: 256 + timeout: 3600