From e9133dc3da01a5a5b3f345a9b20f089900ab2183 Mon Sep 17 00:00:00 2001 From: Kamil Sobala Date: Wed, 30 Sep 2020 12:30:03 +0200 Subject: [PATCH] [MTM-30857]: Configuration for scanning C# SDK [CYJ] product --- .jenkins/scripts/scan_dependencies.sh | 12 ++++++++++++ Tpp.toml | 24 ++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .jenkins/scripts/scan_dependencies.sh create mode 100644 Tpp.toml diff --git a/.jenkins/scripts/scan_dependencies.sh b/.jenkins/scripts/scan_dependencies.sh new file mode 100644 index 0000000..947f15e --- /dev/null +++ b/.jenkins/scripts/scan_dependencies.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +if [ -z "$TPP_FETCHER_URL" ]; then TPP_FETCHER_URL="http://172.30.0.129:8083"; fi + + +if [[ -e Tpp.toml ]] ; then + curl -sS -o tpp-scanner ${TPP_FETCHER_URL}/tpp-scanner \ + && chmod +x tpp-scanner \ + && ./tpp-scanner -tpp-fetcher-url ${TPP_FETCHER_URL} \ + && rm tpp-scanner + exit 0 +fi + diff --git a/Tpp.toml b/Tpp.toml new file mode 100644 index 0000000..3ef14a7 --- /dev/null +++ b/Tpp.toml @@ -0,0 +1,24 @@ +{{ $version := env "RELEASE_VERSION" }} + +name = "c8y-connection-sdk" +revision = "{{ $version }}" + +[[scan]] +type = "VSC#" +path = "MicroservicesSDK/src/Cumulocity.AspNetCore.Authentication.Basic/Cumulocity.AspNetCore.Authentication.Basic.csproj" +excludes = ["com.nsn.cumulocity"] + +[[scan]] +type = "VSC#" +path = "MicroservicesSDK/src/Cumulocity.SDK.Microservices/Cumulocity.SDK.Microservices.csproj" +excludes = ["com.nsn.cumulocity"] + +[[scan]] +type = "VSC#" +path = "DeviceSDK/MQTT/src/MQTT.Client.NetStandard/MQTT.NetStandard.csproj" +excludes = ["com.nsn.cumulocity"] + +[[scan]] +type = "VSC#" +path = "DeviceSDK/MQTT/src/MQTT.Client.NetFramework/MQTT.NetFramework.csproj" +excludes = ["com.nsn.cumulocity"]