Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - job-template:
- name: 'OP_enable_'
- description: 'Включение реплики на бэкенд серверах'
- logrotate:
- daysToKeep: 5
- numToKeep: 7
- wrappers:
- - timestamps
- - ansicolor:
- colormap: xterm
- parameters:
- - bool:
- name: dtln_web1
- - bool:
- name: dtln_web2
- - bool:
- name: dtln_web3
- - bool:
- name: dtln_web4
- - bool:
- name: dtln_web5
- - bool:
- name: dtln_cron1
- builders:
- - conditional-step:
- condition-kind: boolean-expression
- condition-expression: $dtln_web1
- steps:
- - shell: sudo /usr/bin/ansible-playbook /etc/ansible/playbooks-new/change-replica/enable_replica.yml --extra-vars "target=dtln-web1.docdoc.pro"
- - conditional-step:
- condition-kind: boolean-expression
- condition-expression: $dtln_web2
- steps:
- - shell: sudo /usr/bin/ansible-playbook /etc/ansible/playbooks-new/change-replica/enable_replica.yml --extra-vars "target=dtln-web2.docdoc.pro"
- - conditional-step:
- condition-kind: boolean-expression
- condition-expression: $dtln_web3
- steps:
- - shell: sudo /usr/bin/ansible-playbook /etc/ansible/playbooks-new/change-replica/enable_replica.yml --extra-vars "target=dtln-web3.docdoc.pro"
- - conditional-step:
- condition-kind: boolean-expression
- condition-expression: $dtln_web4
- steps:
- - shell: sudo /usr/bin/ansible-playbook /etc/ansible/playbooks-new/change-replica/enable_replica.yml --extra-vars "target=dtln-web4.docdoc.pro"
- - conditional-step:
- condition-kind: boolean-expression
- condition-expression: $dtln_web5
- steps:
- - shell: sudo /usr/bin/ansible-playbook /etc/ansible/playbooks-new/change-replica/enable_replica.yml --extra-vars "target=dtln-web5.docdoc.pro"
- - conditional-step:
- condition-kind: boolean-expression
- condition-expression: $dtln_cron1
- steps:
- - shell: sudo /usr/bin/ansible-playbook /etc/ansible/playbooks-new/change-replica/enable_replica.yml --extra-vars "target=dtln-cron1.docdoc.pro"
- publishers:
- - post-tasks:
- - matches:
- - log-text: FAILED!
- operator: OR
- escalate-status: true
- run-if-job-successful: false
- script: |
- #!/bin/bash
- echo BUILD FAILED!
- exit1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement