Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write rebranding warnings when scripts are served from the old domain #42

Open
wants to merge 5 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions detect10.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Detect Powershell Script
# Recommended Invocation: powershell "irm https://detect.blackduck.com/detect.ps1?$(Get-Random) | iex; detect"

function Write-RebrandingMsg() {
Write-Host "***"
Write-Host "***"
Write-Host "*** Warning: Synopsys Detect has been renamed and rebranded as part of Black Duck being established as a standalone company."
Write-Host "*** Please modify your processes to download Black Duck Detect from https://detect.blackduck.com/detect10.ps1 before 14th February 2025."
Write-Host "*** From 14th February 2025 this script will fail and not execute any scans."
Write-Host "*** For more information please see the domain name change annoucement here: https://community.blackduck.com/s/question/0D5Uh00000JsImfKAF/black-duck-detect-scripts-and-the-impact-of-decommissioning-of-detectsynopsyscom"
Write-Host "***"
Write-Host "*** If you are seeing this warning, and using Synopsys Detect Azure extension, migrate to Black Duck Detect Azure extension before Feb 14th."
Write-Host "*** For more information please see the extension release announcement here: https://community.blackduck.com/s/question/0D5Uh00000Mz1AcKAJ/black-duck-detect-azure-devops-ado-plugin-1000-has-been-released"
Write-Host "***"
Write-Host "*** If you are seeing this warning, and using Synopsys Detect Jenkins plugin (9.0.0 or prior), upgrade/migrate to Black Duck Detect Jenkins Plugin 10.0.0 before Feb 14th."
Write-Host "*** For more information please see the plugin release announcement here: https://community.blackduck.com/s/question/0D5Uh00000Mtso3KAB/black-duck-detect-jenkins-plugin-1000-has-been-released"
Write-Host "***"
Write-Host "***"
}

Write-RebrandingMsg

$ProgressPreference = 'SilentlyContinue'
function Get-EnvironmentVariable($Key, $DefaultValue) { if (-not (Test-Path Env:$Key)) { return $DefaultValue; }else { return (Get-ChildItem Env:$Key).Value; } }

Expand Down Expand Up @@ -124,6 +144,8 @@ function Detect {
$DetectArgs = $args;
$DetectExitCode = Invoke-Detect -DetectJar $DetectJarFile -DetectArgs $DetectArgs

Write-RebrandingMsg

if ($EnvDetectExitCodePassthru -eq "1") {
return $DetectExitCode
} else {
Expand Down
20 changes: 20 additions & 0 deletions detect10.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
#!/bin/bash

write_rebranding_msg() {
echo "***"
echo "***"
echo "*** Warning: Synopsys Detect has been renamed and rebranded as part of Black Duck being established as a standalone company."
echo "*** Please modify your processes to download Black Duck Detect from https://detect.blackduck.com/detect10.sh before 14th February 2025."
echo "*** From 14th February 2025 this script will fail and not execute any scans."
echo "*** For more information please see the domain name change annoucement here: https://community.blackduck.com/s/question/0D5Uh00000JsImfKAF/black-duck-detect-scripts-and-the-impact-of-decommissioning-of-detectsynopsyscom"
echo "***"
echo "*** If you are seeing this warning, and using Synopsys Detect Azure extension, migrate to Black Duck Detect Azure extension before Feb 14th."
echo "*** For more information please see the extension release announcement here: https://community.blackduck.com/s/question/0D5Uh00000Mz1AcKAJ/black-duck-detect-azure-devops-ado-plugin-1000-has-been-released"
echo "***"
echo "*** If you are seeing this warning, and using Synopsys Detect Jenkins plugin (9.0.0 or prior), upgrade/migrate to Black Duck Detect Jenkins Plugin 10.0.0 before Feb 14th."
echo "*** For more information please see the plugin release announcement here: https://community.blackduck.com/s/question/0D5Uh00000Mtso3KAB/black-duck-detect-jenkins-plugin-1000-has-been-released"
echo "***"
echo "***"
}

write_rebranding_msg

get_path_separator() {
# Performs a check to see if the system is Windows based.
if [[ `uname` == *"NT"* ]] || [[ `uname` == *"UWIN"* ]]; then
Expand Down Expand Up @@ -226,6 +245,7 @@ run_detect() {

eval "${JAVACMD} ${SCRIPT_ARGS}"
RESULT=$?
write_rebranding_msg
echo "Result code of ${RESULT}, exiting"
exit ${RESULT}
}
Expand Down
22 changes: 22 additions & 0 deletions detect8.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Detect Powershell Script
# Recommended Invocation: powershell "irm https://detect.synopsys.com/detect.ps1?$(Get-Random) | iex; detect"

function Write-RebrandingMsg() {
Write-Host "***"
Write-Host "***"
Write-Host "*** Warning: Synopsys Detect has been renamed and rebranded as part of Black Duck being established as a standalone company."
Write-Host "*** Please modify your processes to download Black Duck Detect from https://detect.blackduck.com/detect8.ps1 before 14th February 2025."
Write-Host "*** From 14th February 2025 this script will fail and not execute any scans."
Write-Host "*** For more information please see the domain name change annoucement here: https://community.blackduck.com/s/question/0D5Uh00000JsImfKAF/black-duck-detect-scripts-and-the-impact-of-decommissioning-of-detectsynopsyscom"
Write-Host "***"
Write-Host "*** If you are seeing this warning, and using Synopsys Detect Azure extension, migrate to Black Duck Detect Azure extension before Feb 14th."
Write-Host "*** For more information please see the extension release announcement here: https://community.blackduck.com/s/question/0D5Uh00000Mz1AcKAJ/black-duck-detect-azure-devops-ado-plugin-1000-has-been-released"
Write-Host "***"
Write-Host "*** If you are seeing this warning, and using Synopsys Detect Jenkins plugin (9.0.0 or prior), upgrade/migrate to Black Duck Detect Jenkins Plugin 10.0.0 before Feb 14th."
Write-Host "*** For more information please see the plugin release announcement here: https://community.blackduck.com/s/question/0D5Uh00000Mtso3KAB/black-duck-detect-jenkins-plugin-1000-has-been-released"
Write-Host "***"
Write-Host "***"
}

Write-RebrandingMsg

$ProgressPreference = 'SilentlyContinue'
function Get-EnvironmentVariable($Key, $DefaultValue) { if (-not (Test-Path Env:$Key)) { return $DefaultValue; }else { return (Get-ChildItem Env:$Key).Value; } }

Expand Down Expand Up @@ -124,6 +144,8 @@ function Detect {
$DetectArgs = $args;
$DetectExitCode = Invoke-Detect -DetectJar $DetectJarFile -DetectArgs $DetectArgs

Write-RebrandingMsg

if ($EnvDetectExitCodePassthru -eq "1") {
return $DetectExitCode
} else {
Expand Down
20 changes: 19 additions & 1 deletion detect8.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
#!/bin/bash

echo "Detect Shell Script ${SCRIPT_VERSION}"
write_rebranding_msg() {
echo "***"
echo "***"
echo "*** Warning: Synopsys Detect has been renamed and rebranded as part of Black Duck being established as a standalone company."
echo "*** Please modify your processes to download Black Duck Detect from https://detect.blackduck.com/detect8.sh before 14th February 2025."
echo "*** From 14th February 2025 this script will fail and not execute any scans."
echo "*** For more information please see the domain name change annoucement here: https://community.blackduck.com/s/question/0D5Uh00000JsImfKAF/black-duck-detect-scripts-and-the-impact-of-decommissioning-of-detectsynopsyscom"
echo "***"
echo "*** If you are seeing this warning, and using Synopsys Detect Azure extension, migrate to Black Duck Detect Azure extension before Feb 14th."
echo "*** For more information please see the extension release announcement here: https://community.blackduck.com/s/question/0D5Uh00000Mz1AcKAJ/black-duck-detect-azure-devops-ado-plugin-1000-has-been-released"
echo "***"
echo "*** If you are seeing this warning, and using Synopsys Detect Jenkins plugin (9.0.0 or prior), upgrade/migrate to Black Duck Detect Jenkins Plugin 10.0.0 before Feb 14th."
echo "*** For more information please see the plugin release announcement here: https://community.blackduck.com/s/question/0D5Uh00000Mtso3KAB/black-duck-detect-jenkins-plugin-1000-has-been-released"
echo "***"
echo "***"
}

write_rebranding_msg

get_path_separator() {
# Performs a check to see if the system is Windows based.
Expand Down Expand Up @@ -228,6 +245,7 @@ run_detect() {

eval "${JAVACMD} ${SCRIPT_ARGS}"
RESULT=$?
write_rebranding_msg
echo "Result code of ${RESULT}, exiting"
exit ${RESULT}
}
Expand Down
22 changes: 22 additions & 0 deletions detect9.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Detect Powershell Script
# Recommended Invocation: powershell "irm https://detect.synopsys.com/detect.ps1?$(Get-Random) | iex; detect"

function Write-RebrandingMsg() {
Write-Host "***"
Write-Host "***"
Write-Host "*** Warning: Synopsys Detect has been renamed and rebranded as part of Black Duck being established as a standalone company."
Write-Host "*** Please modify your processes to download Black Duck Detect from https://detect.blackduck.com/detect9.ps1 before 14th February 2025."
Write-Host "*** From 14th February 2025 this script will fail and not execute any scans."
Write-Host "*** For more information please see the domain name change annoucement here: https://community.blackduck.com/s/question/0D5Uh00000JsImfKAF/black-duck-detect-scripts-and-the-impact-of-decommissioning-of-detectsynopsyscom"
Write-Host "***"
Write-Host "*** If you are seeing this warning, and using Synopsys Detect Azure extension, migrate to Black Duck Detect Azure extension before Feb 14th."
Write-Host "*** For more information please see the extension release announcement here: https://community.blackduck.com/s/question/0D5Uh00000Mz1AcKAJ/black-duck-detect-azure-devops-ado-plugin-1000-has-been-released"
Write-Host "***"
Write-Host "*** If you are seeing this warning, and using Synopsys Detect Jenkins plugin (9.0.0 or prior), upgrade/migrate to Black Duck Detect Jenkins Plugin 10.0.0 before Feb 14th."
Write-Host "*** For more information please see the plugin release announcement here: https://community.blackduck.com/s/question/0D5Uh00000Mtso3KAB/black-duck-detect-jenkins-plugin-1000-has-been-released"
Write-Host "***"
Write-Host "***"
}

Write-RebrandingMsg

$ProgressPreference = 'SilentlyContinue'
function Get-EnvironmentVariable($Key, $DefaultValue) { if (-not (Test-Path Env:$Key)) { return $DefaultValue; }else { return (Get-ChildItem Env:$Key).Value; } }

Expand Down Expand Up @@ -124,6 +144,8 @@ function Detect {
$DetectArgs = $args;
$DetectExitCode = Invoke-Detect -DetectJar $DetectJarFile -DetectArgs $DetectArgs

Write-RebrandingMsg

if ($EnvDetectExitCodePassthru -eq "1") {
return $DetectExitCode
} else {
Expand Down
20 changes: 20 additions & 0 deletions detect9.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
#!/bin/bash

write_rebranding_msg() {
echo "***"
echo "***"
echo "*** Warning: Synopsys Detect has been renamed and rebranded as part of Black Duck being established as a standalone company."
echo "*** Please modify your processes to download Black Duck Detect from https://detect.blackduck.com/detect9.sh before 14th February 2025."
echo "*** From 14th February 2025 this script will fail and not execute any scans."
echo "*** For more information please see the domain name change annoucement here: https://community.blackduck.com/s/question/0D5Uh00000JsImfKAF/black-duck-detect-scripts-and-the-impact-of-decommissioning-of-detectsynopsyscom"
echo "***"
echo "*** If you are seeing this warning, and using Synopsys Detect Azure extension, migrate to Black Duck Detect Azure extension before Feb 14th."
echo "*** For more information please see the extension release announcement here: https://community.blackduck.com/s/question/0D5Uh00000Mz1AcKAJ/black-duck-detect-azure-devops-ado-plugin-1000-has-been-released"
echo "***"
echo "*** If you are seeing this warning, and using Synopsys Detect Jenkins plugin (9.0.0 or prior), upgrade/migrate to Black Duck Detect Jenkins Plugin 10.0.0 before Feb 14th."
echo "*** For more information please see the plugin release announcement here: https://community.blackduck.com/s/question/0D5Uh00000Mtso3KAB/black-duck-detect-jenkins-plugin-1000-has-been-released"
echo "***"
echo "***"
}

write_rebranding_msg

get_path_separator() {
# Performs a check to see if the system is Windows based.
if [[ `uname` == *"NT"* ]] || [[ `uname` == *"UWIN"* ]]; then
Expand Down Expand Up @@ -226,6 +245,7 @@ run_detect() {

eval "${JAVACMD} ${SCRIPT_ARGS}"
RESULT=$?
write_rebranding_msg
echo "Result code of ${RESULT}, exiting"
exit ${RESULT}
}
Expand Down