aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/build-sonar.sh
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2022-08-12 15:21:00 +0200
committerMauro Sardara <msardara@cisco.com>2022-08-12 15:21:32 +0200
commitd2a94ecce09a1d1c761ae6f5c1181ebf9e80f84b (patch)
tree46326f6ea8a3ab348942d55e0dda8057084fceac /scripts/build-sonar.sh
parent8743186ac085d843eab249887c09ebee8d7a1646 (diff)
ci(sonarqube): force job to fail if any command fails
Ref: HICN-741 Change-Id: Ib789432e5419d70188836f5391997067e2e9e8c3 Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'scripts/build-sonar.sh')
-rw-r--r--scripts/build-sonar.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/build-sonar.sh b/scripts/build-sonar.sh
index 80ae38175..eb6f0f5f2 100644
--- a/scripts/build-sonar.sh
+++ b/scripts/build-sonar.sh
@@ -13,6 +13,8 @@
#!/bin/bash
+set -euxo pipefail
+
# Download docker compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose