Static code analysis for ric-plt-utils
This change adds the job to trigger sonar scans on the ric-plt-utils repo.
Issue-Id: 694
Signed-off-by: Alok Bhatt <alok_bh@hcl.com>
Change-Id: Iaaebc0077a3cbaf19e3609505e7a4eea483f5e75
diff --git a/jjb/ric-plt-utils/cmake-sonarqube.sh b/jjb/ric-plt-utils/cmake-sonarqube.sh
new file mode 100644
index 0000000..891f1c3
--- /dev/null
+++ b/jjb/ric-plt-utils/cmake-sonarqube.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+# SPDX-License-Identifier: EPL-1.0
+##############################################################################
+# Copyright (c) 2020 HCL Technologies and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+##############################################################################
+echo "---> cmake-sonarqube.sh"
+cd mgxapp
+docker build -t ric-plt-utils -f Dockerfile.build .
+docker create --name ric-plt-utils ric-plt-utils
+docker cp ric-plt-utils:/playpen/build/test/ .
+docker rm ric-plt-utils
+echo "---> cmake-sonarqube.sh ends"
\ No newline at end of file