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 4 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
21 changes: 21 additions & 0 deletions detect10.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# 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 rebranded as Black Duck Detect."
Write-Host "*** Please modify your processes to download Black Duck Detect from https://detect.blackduck.com/detect10.ps1 before February 14th, 2025, to prevent script and scan execution failure."
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"
Copy link
Collaborator

@cpottsbd cpottsbd Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one little typo on "announcement", on line 9, otherwise looks good! Thank you.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thank you!

Write-Host "***"
Write-Host "*** If you are using the Synopsys Detect Azure extension, migrate to the Black Duck Detect Azure extension before February 14th, 2025."
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 using Synopsys Detect Jenkins plugin (9.0.0 or prior), migrate to Black Duck Detect Jenkins Plugin 10.0.0 before February 14th, 2025."
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 +143,8 @@ function Detect {
$DetectArgs = $args;
$DetectExitCode = Invoke-Detect -DetectJar $DetectJarFile -DetectArgs $DetectArgs

Write-RebrandingMsg

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

write_rebranding_msg() {
echo "***"
echo "***"
echo "*** Warning: Synopsys Detect has been rebranded as Black Duck Detect."
echo "*** Please modify your processes to download Black Duck Detect from https://detect.blackduck.com/detect10.sh before February 14th, 2025, to prevent script and scan execution failure."
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 using the Synopsys Detect Azure extension, migrate to the Black Duck Detect Azure extension before February 14th, 2025."
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 using Synopsys Detect Jenkins plugin (9.0.0 or prior), migrate to Black Duck Detect Jenkins Plugin 10.0.0 before February 14th, 2025."
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 +244,7 @@ run_detect() {

eval "${JAVACMD} ${SCRIPT_ARGS}"
RESULT=$?
write_rebranding_msg
echo "Result code of ${RESULT}, exiting"
exit ${RESULT}
}
Expand Down
21 changes: 21 additions & 0 deletions detect8.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# 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 rebranded as Black Duck Detect."
Write-Host "*** Please modify your processes to download Black Duck Detect from https://detect.blackduck.com/detect8.ps1 before February 14th, 2025, to prevent script and scan execution failure."
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 using the Synopsys Detect Azure extension, migrate to the Black Duck Detect Azure extension before February 14th, 2025."
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 using Synopsys Detect Jenkins plugin (9.0.0 or prior), migrate to Black Duck Detect Jenkins Plugin 10.0.0 before February 14th, 2025."
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 +143,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 rebranded as Black Duck Detect."
echo "*** Please modify your processes to download Black Duck Detect from https://detect.blackduck.com/detect8.sh before February 14th, 2025, to prevent script and scan execution failure."
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 using the Synopsys Detect Azure extension, migrate to the Black Duck Detect Azure extension before February 14th, 2025."
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 using Synopsys Detect Jenkins plugin (9.0.0 or prior), migrate to Black Duck Detect Jenkins Plugin 10.0.0 before February 14th, 2025."
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
21 changes: 21 additions & 0 deletions detect9.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# 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 rebranded as Black Duck Detect."
Write-Host "*** Please modify your processes to download Black Duck Detect from https://detect.blackduck.com/detect9.ps1 before February 14th, 2025, to prevent script and scan execution failure."
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 using the Synopsys Detect Azure extension, migrate to the Black Duck Detect Azure extension before February 14th, 2025."
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 using Synopsys Detect Jenkins plugin (9.0.0 or prior), migrate to Black Duck Detect Jenkins Plugin 10.0.0 before February 14th, 2025."
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 +143,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 rebranded as Black Duck Detect."
echo "*** Please modify your processes to download Black Duck Detect from https://detect.blackduck.com/detect9.sh before February 14th, 2025, to prevent script and scan execution failure."
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 using the Synopsys Detect Azure extension, migrate to the Black Duck Detect Azure extension before February 14th, 2025."
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 using Synopsys Detect Jenkins plugin (9.0.0 or prior), migrate to Black Duck Detect Jenkins Plugin 10.0.0 before February 14th, 2025."
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