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
17 lines
596 B
YAML
17 lines
596 B
YAML
---
|
|
- 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' }}" |