diff --git a/scripts/build-linux.sh b/scripts/build-linux.sh index 125c2529..9aec7854 100644 --- a/scripts/build-linux.sh +++ b/scripts/build-linux.sh @@ -42,9 +42,10 @@ fi if ! [ -x "$(command -v snyk)" ]; then echo 'Snyk does not exist! Installing and setting it up' >&2 npm install -g snyk - snyk config set org="$SNYK_ORG" - snyk config set api="$SNYK_API_TOKEN" fi +echo "Setting snyk org to $SNYK_ORG and api token to $SNYK_API_TOKEN" +snyk config set org="$SNYK_ORG" +snyk config set api="$SNYK_API_TOKEN" if [ -z "$PARENT_BUILD_VERSION" ]; then echo "PARENT_BUILD_VERSION is empty, setting default" diff --git a/scripts/build-mac.sh b/scripts/build-mac.sh index b07f4cf7..d6d1ddbd 100755 --- a/scripts/build-mac.sh +++ b/scripts/build-mac.sh @@ -43,9 +43,10 @@ fi if ! [ -x "$(command -v snyk)" ]; then echo 'Snyk does not exist! Installing and setting it up' >&2 npm install -g snyk - snyk config set org="$SNYK_ORG" - snyk config set api="$SNYK_API_TOKEN" fi +echo "Setting snyk org to $SNYK_ORG and api token to $SNYK_API_TOKEN" +snyk config set org="$SNYK_ORG" +snyk config set api="$SNYK_API_TOKEN" if ! [ -x "$(command -v /usr/local/bin/packagesbuild)" ]; then echo 'Packages build does not exist! Please set it up before running this script!' >&2 diff --git a/scripts/build-win32.bat b/scripts/build-win32.bat index e79b3c5b..8bdc262b 100644 --- a/scripts/build-win32.bat +++ b/scripts/build-win32.bat @@ -39,9 +39,10 @@ WHERE snyk if %ERRORLEVEL% NEQ 0 ( echo "Snyk does not exist! Installing and setting it up" call npm i snyk -g - call snyk config set org=%$SNYK_ORG% - call snyk config set api=%SNYK_API_TOKEN% ) +echo "Setting snyk org to %SNYK_ORG% and api token to %SNYK_API_TOKEN%" +call snyk config set org=%SNYK_ORG% +call snyk config set api=%SNYK_API_TOKEN% :: Below command replaces buildVersion with the appropriate build number from jenkins sed -i -e "s/\"buildNumber\"[[:space:]]*\:[[:space:]]*\".*\"/\"buildNumber\":\"%PARENT_BUILD_VERSION%\"/g" package.json diff --git a/scripts/build-win64.bat b/scripts/build-win64.bat index 333ec585..af010e46 100644 --- a/scripts/build-win64.bat +++ b/scripts/build-win64.bat @@ -27,9 +27,10 @@ WHERE snyk if %ERRORLEVEL% NEQ 0 ( echo "Snyk does not exist! Installing and setting it up" call npm i snyk -g - call snyk config set org=%$SNYK_ORG% - call snyk config set api=%SNYK_API_TOKEN% ) +echo "Setting snyk org to %SNYK_ORG% and api token to %SNYK_API_TOKEN%" +call snyk config set org=%SNYK_ORG% +call snyk config set api=%SNYK_API_TOKEN% :: Below command replaces buildVersion with the appropriate build number from jenkins sed -i -e "s/\"buildNumber\"[[:space:]]*\:[[:space:]]*\".*\"/\"buildNumber\":\"%PARENT_BUILD_VERSION%\"/g" package.json