test other version
Some checks failed
Ansible Minecraft CI/CD Pipeline / Ansible Lint Check (push) Successful in 58s
Ansible Minecraft CI/CD Pipeline / Project Structure Validation (push) Failing after 3s
Ansible Minecraft CI/CD Pipeline / Security Scan (push) Successful in 4s
Ansible Minecraft CI/CD Pipeline / Deploy to Staging (push) Has been skipped
Ansible Minecraft CI/CD Pipeline / Deploy to Production (push) Has been skipped
Ansible Minecraft CI/CD Pipeline / Backup System Check (push) Has been skipped
Some checks failed
Ansible Minecraft CI/CD Pipeline / Ansible Lint Check (push) Successful in 58s
Ansible Minecraft CI/CD Pipeline / Project Structure Validation (push) Failing after 3s
Ansible Minecraft CI/CD Pipeline / Security Scan (push) Successful in 4s
Ansible Minecraft CI/CD Pipeline / Deploy to Staging (push) Has been skipped
Ansible Minecraft CI/CD Pipeline / Deploy to Production (push) Has been skipped
Ansible Minecraft CI/CD Pipeline / Backup System Check (push) Has been skipped
This commit is contained in:
17
roles/05-update/tasks/05-compile-new-spigot.yml
Normal file
17
roles/05-update/tasks/05-compile-new-spigot.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: Compile new Spigot version
|
||||
ansible.builtin.shell: |
|
||||
cd {{ spigot_new_version_dir }}
|
||||
java -jar BuildTools.jar --rev {{ minecraft_version }}
|
||||
become_user: "{{ minecraft_user }}"
|
||||
register: new_spigot_compilation
|
||||
failed_when: new_spigot_compilation.rc != 0
|
||||
timeout: 1800
|
||||
|
||||
- name: Set compilation success flag
|
||||
ansible.builtin.set_fact:
|
||||
spigot_compilation_successful: "{{ new_spigot_compilation.rc == 0 }}"
|
||||
|
||||
- name: Display compilation result
|
||||
ansible.builtin.debug:
|
||||
msg: "New Spigot compilation {{ 'successful' if spigot_compilation_successful else 'failed' }}"
|
Reference in New Issue
Block a user