Skip to content

Commit

Permalink
Bump submodules/xml-plugin from dccc3b7 to 9a4dbee (#5492)
Browse files Browse the repository at this point in the history
* Bump submodules/xml-plugin from `dccc3b7` to `9a4dbee`

Bumps [submodules/xml-plugin](https://github.com/SonarSource/sonar-xml) from `dccc3b7` to `9a4dbee`.
- [Release notes](https://github.com/SonarSource/sonar-xml/releases)
- [Commits](SonarSource/sonar-xml@dccc3b7...9a4dbee)

---
updated-dependencies:
- dependency-name: submodules/xml-plugin
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* update xml plugin

* get logs

* fix xml plugin

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dzmitry Rudnouski <[email protected]>
  • Loading branch information
dependabot[bot] and dzmitry-rudnouski authored Nov 13, 2024
1 parent b5b1bb4 commit f57dd7f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 52 deletions.
3 changes: 2 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ git_pversion: "{% if sonar_version is version(\"8.5.0.37579\", \">=\") %}0.0.0\
{% else %}0.0.0\
{% endif %}"

xml_pversion: "{% if sonar_version is version(\"9.9\", \">=\") %}2.10.0.4108\
xml_pversion: "{% if sonar_version is version(\"10.1\", \">=\") %}2.11.0.5671\
{% elif sonar_version is version(\"9.9\", \">=\") %}2.10.0.4108\
{% elif sonar_version is version(\"8.9\", \">=\") %}2.7.0.3820\
{% elif sonar_version is version(\"7.0\", \">=\") %}2.4.0.3273\
{% else %}0.0.0\
Expand Down
23 changes: 23 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
- Wait for migrate DB
- Migrate DB
- Wait for Sonarqube
- Show logs
- Debug
- Fail
when: sonar_start_by_service | bool
become: true

Expand All @@ -22,6 +25,9 @@
- Wait for migrate DB
- Migrate DB
- Wait for Sonarqube
- Show logs
- Debug
- Fail
when: not (sonar_start_by_service | bool)

- name: Wait for migrate DB
Expand Down Expand Up @@ -52,3 +58,20 @@
until: "'UP' in uri_result.content"
retries: 40
delay: 3
ignore_errors: true

- name: Show logs
ansible.builtin.shell: 'cat {{ sonar_installation }}/logs/*'
register: logs
changed_when: logs.rc != 0
when: "'UP' not in uri_result.content"

- name: Debug
ansible.builtin.debug:
var: logs.stdout
when: "'UP' not in uri_result.content"

- name: Fail
ansible.builtin.fail:
msg: SonarQube failed to start, see logs above
when: "'UP' not in uri_result.content"
2 changes: 1 addition & 1 deletion submodules/xml-plugin
Submodule xml-plugin updated 167 files
50 changes: 0 additions & 50 deletions tasks/system/Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,56 +173,6 @@
- name: Flush handlers
ansible.builtin.meta: flush_handlers

rescue:
- name: Show logs
ansible.builtin.command: 'ls {{ sonar_installation }}/logs/'
register: logs_list
changed_when: logs_list.rc != 0

- name: Debug
ansible.builtin.debug:
var: logs_list.stdout

- name: Get sonar log
ansible.builtin.command: 'cat {{ sonar_log_path }}'
register: sonar_log
changed_when: sonar_log.rc != 0

- name: Debug
ansible.builtin.debug:
var: sonar_log.stdout

- name: Get es log
ansible.builtin.command: 'cat {{ sonar_installation }}/logs/es.log'
register: es_log
changed_when: es_log.rc != 0

- name: Debug
ansible.builtin.debug:
var: es_log.stdout

- name: Get web log
ansible.builtin.command: 'cat {{ sonar_installation }}/logs/web.log'
register: web_log
changed_when: web_log.rc != 0

- name: Debug
ansible.builtin.debug:
var: web_log.stdout

- name: Get nohup log
ansible.builtin.command: 'cat {{ sonar_installation }}/logs/nohup.log'
register: nohup_log
when:
- sonar_version is version("8.0", ">=")
changed_when: nohup_log.rc != 0

- name: Debug
ansible.builtin.debug:
var: nohup_log.stdout
when:
- sonar_version is version("8.0", ">=")

- name: Verify login with old password
ansible.builtin.uri:
url: '{{ sonar_check_url }}/api/authentication/login'
Expand Down

0 comments on commit f57dd7f

Please sign in to comment.