Skip to content

Commit 68dbcb3

Browse files
Merge pull request #193 from jenkinsci/SIGINT-2205-latest
SIGINT-2205: [Deprecate] [Jenkins]: synopsys-security-scan plugin
2 parents 8341558 + 792906f commit 68dbcb3

File tree

7 files changed

+19
-7
lines changed

7 files changed

+19
-7
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Synopsys Security Scan Plugin
1+
# DEPRECATED: Synopsys Security Scan Plugin
2+
3+
**NOTE:** This plugin has been deprecated and will not work after February 14, 2025. It is recommended that you migrate to our new <a href="https://plugins.jenkins.io/blackduck-security-scan/">Black Duck Security Scan</a>. Instructions can be found <a href="https://documentation.blackduck.com/bundle/bridge/page/documentation/c_using-jenkins-plugin.html">here</a>.
24

35
This repository contains a Jenkins plugin implemented as a Maven project. The plugin provides functionality for performing Synopsys Security Scan with Black Duck, Coverity and Polaris. This README.md file serves as a guide for the users of the plugin.
46

pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<artifactId>synopsys-security-scan</artifactId>
1212
<version>${revision}${changelist}</version>
1313
<packaging>hpi</packaging>
14-
<name>Synopsys Security Scan</name>
14+
<name>DEPRECATED: Synopsys Security Scan</name>
1515
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
1616
<licenses>
1717
<license>
@@ -99,6 +99,10 @@
9999
</exclusion>
100100
</exclusions>
101101
</dependency>
102+
<dependency>
103+
<groupId>org.jenkins-ci.plugins</groupId>
104+
<artifactId>cloudbees-folder</artifactId>
105+
</dependency>
102106
<dependency>
103107
<groupId>org.jenkins-ci.plugins</groupId>
104108
<artifactId>github-branch-source</artifactId>

src/main/java/io/jenkins/plugins/synopsys/security/scan/extension/freestyle/SecurityScanFreestyle.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -983,9 +983,12 @@ public void perform(
983983
Exception unknownException = new Exception();
984984
LoggerWrapper logger = new LoggerWrapper(listener);
985985

986-
logger.info(
986+
logger.println(
987987
"**************************** START EXECUTION OF SYNOPSYS SECURITY SCAN ****************************");
988988

989+
logger.warn(
990+
"This plugin has been deprecated and will not work after February 14, 2025. It is recommended that you migrate to our new Black Duck Security Scan (https://plugins.jenkins.io/blackduck-security-scan/). Instructions can be found at https://documentation.blackduck.com/bundle/bridge/page/documentation/c_using-jenkins-plugin.html");
991+
989992
try {
990993
exitCode = ScanParametersFactory.createPipelineCommand(run, listener, env, launcher, null, workspace)
991994
.initializeScanner(getParametersMap(workspace, listener));
@@ -1043,7 +1046,7 @@ public static class Descriptor extends BuildStepDescriptor<Builder> {
10431046

10441047
@Override
10451048
public String getDisplayName() {
1046-
return "Synopsys Security Scan";
1049+
return ApplicationConstants.DISPLAY_NAME;
10471050
}
10481051

10491052
@Override

src/main/java/io/jenkins/plugins/synopsys/security/scan/extension/pipeline/SecurityScanStep.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,6 +1067,9 @@ protected Integer run() throws PluginExceptionHandler, ScannerException {
10671067
logger.println(
10681068
"**************************** START EXECUTION OF SYNOPSYS SECURITY SCAN ****************************");
10691069

1070+
logger.warn(
1071+
"This plugin has been deprecated and will not work after February 14, 2025. It is recommended that you migrate to our new Black Duck Security Scan (https://plugins.jenkins.io/blackduck-security-scan/). Instructions can be found at https://documentation.blackduck.com/bundle/bridge/page/documentation/c_using-jenkins-plugin.html");
1072+
10701073
try {
10711074
verifyRequiredPlugins(logger, envVars);
10721075

src/main/java/io/jenkins/plugins/synopsys/security/scan/global/ApplicationConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import java.util.List;
66

77
public class ApplicationConstants {
8-
public static final String DISPLAY_NAME = "Synopsys Security Scan";
8+
public static final String DISPLAY_NAME = "DEPRECATED: Synopsys Security Scan";
99
public static final String PIPELINE_NAME = "synopsys_scan";
1010
public static final String BRIDGE_ARTIFACTORY_URL =
1111
"https://sig-repo.synopsys.com/artifactory/bds-integrations-release/com/synopsys/integration/synopsys-bridge";

src/main/resources/index.jelly

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?jelly escape-by-default='true'?>
22
<div>
3-
Synopsys Security Scan Plugin
3+
DEPRECATED: Synopsys Security Scan Plugin
44
</div>

src/main/resources/io/jenkins/plugins/synopsys/security/scan/extension/global/ScannerGlobalConfig/config.jelly

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?jelly escape-by-default='true'?>
22
<j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form" xmlns:c="/lib/credentials">
3-
<f:section title="Synopsys Security Scan">
3+
<f:section title="DEPRECATED: Synopsys Security Scan">
44

55
<!-- Place a single info line above the tabs -->
66
<div class="tab-info">Synopsys Security Product Configuration </div>

0 commit comments

Comments
 (0)