aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/install-coverity/tasks/main.yml
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2023-12-08 09:56:33 +0100
committerosmith <osmith@sysmocom.de>2023-12-08 13:40:08 +0000
commit1fc751429621810c78122c418dd8e2fc7db295d7 (patch)
treed6ed985fd8222401fe43e4be5803f37c43925f7a /ansible/roles/install-coverity/tasks/main.yml
parent39dd96b39074d42153616522015958b8dcccd188 (diff)
ansible: fix updating /opt/coverity/current
Remove the previous /opt/coverity/current symlink, before creating the new one. Otherwise the new symlink would be created inside "current" pointing at the old version, instead of replacing "current" with the new symlink. # ln -svf /opt/coverity/2023.6.2/* /opt/coverity/current '/opt/coverity/current/cov-analysis-linux64-2023.6.2' -> '/opt/coverity/2023.6.2/cov-analysis-linux64-2023.6.2' # readlink /opt/covervity/current /opt/coverity/2022.06/cov-analysis-linux64-2022.6.0 Add the verbosity flag to the command while at it. (The glob is unrelated, why it is needed is described in I2b96d1e47f2697706a042937b2852f0fc5032a7b) Related: SYS#6685 Change-Id: I4ecb4997829b3cc61c839d089bda44f821ca8b85
Diffstat (limited to 'ansible/roles/install-coverity/tasks/main.yml')
-rw-r--r--ansible/roles/install-coverity/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/roles/install-coverity/tasks/main.yml b/ansible/roles/install-coverity/tasks/main.yml
index 246fa36..ca4a24c 100644
--- a/ansible/roles/install-coverity/tasks/main.yml
+++ b/ansible/roles/install-coverity/tasks/main.yml
@@ -37,7 +37,7 @@
when: coverity_copy.failed == False
- name: create link /opt/coverity/current
- shell: ln -sf /opt/coverity/{{ coverity_version }}/* /opt/coverity/current
+ shell: rm -vf /opt/coverity/current && ln -svf /opt/coverity/{{ coverity_version }}/* /opt/coverity/current
args:
warn: false
when: coverity_copy.failed == False