Skip to content

Commit daccaeb

Browse files
authored
Merge pull request #1294 from blackducksoftware/cp_JenkinsRenaming
Jenkins plugin renaming for BD
2 parents a257b88 + d350a94 commit daccaeb

12 files changed

+83
-32
lines changed

documentation/src/main/markdown/currentreleasenotes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
### Resolved issues
2323

2424
* (IDETECT-4517) - [detect_product_short] now correctly indicates a timeout failure occurred when multipart binary or container scans timeout during an upload.
25-
* (IDETECT-4540) - multipart binary and container scans now correctly retry when authentication errors are received during transmission.
25+
* (IDETECT-4540) - Multipart binary and container scans now correctly retry when authentication errors are received during transmission.

documentation/src/main/markdown/integrations/jenkinsplugin/airgapfordetect.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Jenkins Air Gap mode
2-
The [company_name] for Jenkins plugin enables you to configure an Air Gap option to run [detect_product_short]
2+
The [detect_product_long] for Jenkins plugin enables you to configure an Air Gap option to run [detect_product_short]
33

44
Before you can see the [detect_product_short] Air Gap option on the Global Tool Configuration page, you must install the [detect_product_short] plugin.
55

documentation/src/main/markdown/integrations/jenkinsplugin/autoescapingparameters.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Auto-escaping Parameters
22

3-
In [company_name] [detect_product_short] for Jenkins, several special parameters are automatically escaped.
3+
In [detect_product_long] for Jenkins, several special parameters are automatically escaped.
44
The workflows pertaining to quotation marks and spaces are as follows.
55

66
- Detect properties must be separated by spaces or carriage returns/line feeds.
@@ -13,9 +13,9 @@ The workflows pertaining to quotation marks and spaces are as follows.
1313
You can turn off auto escaping by setting the environment variable *DETECT\_PLUGIN\_ESCAPING* to false.
1414
Jenkins enables you to set an environment variable at different levels, such as globally or on a per-job basis. If you set the environment variable globally to one value, you can set it at the job level to another value. It is recommended to set the environment variable globally to skip escaping (ensuring past jobs work as expected), and then if you want to make jobs with the auto escaping enabled, you modify the environment variable flag in that job's configuration to enable escaping the characters. The easiest way to accomplish this is to install the ["Environment Injector" Jenkins plugin](https://plugins.jenkins.io/envinject/).
1515

16-
**Note:** In [company_name] [detect_product_short] plugin version 9, the above recommendations remain the same for agents on Windows systems. For those agents running on 'NIX systems, *DETECT\_PLUGIN\_ESCAPING* should be set to false. Ensure that you adhere to the quoting conventions described above. Any input with spaces in the Jenkins configuration should be enclosed in quotes.
16+
**Note:** In [detect_product_long] plugin version 10, the above recommendations remain the same for agents on Windows systems. For those agents running on 'NIX systems, *DETECT\_PLUGIN\_ESCAPING* should be set to false. Ensure that you adhere to the quoting conventions described above. Any input with spaces in the Jenkins configuration should be enclosed in quotes.
1717

18-
[company_name] [detect_product_short] for Jenkins allows some special characters when *DETECT\_PLUGIN\_ESCAPING* is set to false, and spaces can be included without escape sequences provided that they are enclosed in single or double quotes as described above for different agents. Therefore, instead of `My\ Test\ Project1`, you can pass it as `'My Test Project1'`, the project will be created and uploaded to [bd_product_short] as `My Test Project1*.*`
18+
[detect_product_long] for Jenkins allows some special characters when *DETECT\_PLUGIN\_ESCAPING* is set to false, and spaces can be included without escape sequences provided that they are enclosed in single or double quotes as described above for different agents. Therefore, instead of `My\ Test\ Project1`, you can pass it as `'My Test Project1'`, the project will be created and uploaded to [bd_product_short] as `My Test Project1*.*`
1919

2020
If *DETECT\_PLUGIN\_ESCAPING* is set to true, then you can use backtick (\`) to escape spaces which are passed within argument values. Therefore, you can pass values as "Windows` Project" in the arguments.
2121

documentation/src/main/markdown/integrations/jenkinsplugin/configuringtheplugin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Configuring the Jenkins Plugin
2-
Use the following process to configure the [company_name] [detect_product_short] for Jenkins plugin.  Note that the supported credential formats are user name and password or API token.  SAML is not supported.
2+
Use the following process to configure the [detect_product_long] for Jenkins plugin.  Note that the supported credential formats are user name and password or API token.  SAML is not supported.
33

44
1. After installing, navigate to **Manage Jenkins** > **Configure System**.
55
1. Navigate to the **[detect_product_short]** section, and complete the following.

documentation/src/main/markdown/integrations/jenkinsplugin/dockercontainers.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Using Docker Containers - Best Practice
2-
When running [company_name] [detect_product_short] for Jenkins using the *DETECT\_JAR* environment variable in a pipeline that has a Docker agent, remember to mount the Detect JAR as a volume.
2+
When running [detect_product_short] for Jenkins using the *DETECT\_JAR* environment variable in a pipeline that has a Docker agent, remember to mount the Detect JAR as a volume.
33

44
For example, if you've installed the jar on a node, the JAR won't be accessible from your docker agent unless you either put it somewhere you regularly
55
include, or if you mount the path to the jar. Refer to [Docker documentation](https://docs.docker.com/storage/bind-mounts/#choose-the--v-or---mount-flag) for more information.
@@ -18,4 +18,4 @@ pipeline {
1818
...
1919
```
2020

21-
Applies when running [company_name] [detect_product_short] for Jenkins with a local JAR (which requires setting the *DETECT\_JAR* environment variable).
21+
Applies when running [detect_product_short] for Jenkins with a local JAR (which requires setting the *DETECT\_JAR* environment variable).

documentation/src/main/markdown/integrations/jenkinsplugin/downloadingandinstalling.md

+42-18
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,50 @@
11
# Downloading, Installing, and Updating the Plugin
2-
To install the [company_name] [detect_product_short] for Jenkins plugin, perform the following steps:
32

4-
1. Navigate to **Manage Jenkins** > **Manage Plugins**.
5-
1. Select the **Available** tab.  (Note that if the plugin is already installed, it does not appear in the **Available** list.)
6-
1. Select **Blackduck Detect**.
7-
1. Click **Download now and install after restart**. This is the recommendation for installing the plugin.
8-
1. After restarting Jenkins, confirm that the plugin is successfully installed by navigating to **Manage Jenkins** > **Manage Plugins > Installed**, and verify that **[company_name] [solution_name]** displays in the list.
3+
## Downloading and Installing
4+
To install the [detect_product_short] for Jenkins plugin, perform the following steps:
95

10-
[company_name] [detect_product_short] plugin for Jenkins GitHub page [jenkinsci](https://github.com/jenkinsci/synopsys-detect-plugin).
11-
Additional download locations listed in [Download locations](../../downloadingandrunning/downloadlocations.html).
12-
13-
## Updating the [company_name] [detect_product_short] for Jenkins plugin
14-
You can update the [company_name] [detect_product_short] for Jenkins plugin when new versions are released.
6+
1. Navigate to **Manage Jenkins** > **Manage Plugins**.
7+
1. Select the **Available** tab. (Note that if the plugin is already installed, it does not appear in the **Available** list.)
8+
1. Select **Blackduck [detect_product_short]**.
9+
1. Click **Download now and install after restart**. This is the recommendation for installing the plugin.
10+
1. After restarting Jenkins, confirm that the plugin is successfully installed by navigating to **Manage Jenkins** > **Manage Plugins > Installed**, and verify that **[company_name] [solution_name]** displays in the list.
1511

16-
**To update the Jenkins plugin:**
12+
[detect_product_short] plugin for Jenkins GitHub page [jenkinsci](https://github.com/jenkinsci/blackduck-detect-plugin).
13+
Additional download locations listed in [Download locations](../../downloadingandrunning/downloadlocations.html).
1714

18-
1. Navigate to **Manage Jenkins** > **Manage Plugins**.
19-
1. Click the **Updates** tab.
20-
1. Select **Blackduck Detect**
21-
1. If there are updates for the [company_name] [detect_product_short] for Jenkins plugin, the updates display in the list.  If there is not an available update, the [company_name] [detect_product_short] for Jenkins plugin does not display in this list.
22-
1. Alternatively, you can force Jenkins to check for plugin updates by clicking **Check now** on the **Updates** tab.
23-
1. If there are updates, select the one you want, and click **Download now and install after restart**.
15+
## [company_name] [solution_name] Jenkins plugin to [detect_product_long] Jenkins plugin{#updating-existing-jenkins}
16+
For existing [company_name] [solution_name] Jenkins plugin users, the [detect_product_long] Jenkins plugin should be considered a fresh installation as the domain has changed.
17+
* Before moving from the [detect_product_short] Jenkins plugin to the [detect_product_long] Jenkins plugin, you should take note of your existing system configuration and post-build setup.
18+
* Configuration information can be located under your `JENKINS_HOME` directory.
19+
* If you are utilizing a [detect_product_short] Post Build Step, before upgrading to the [detect_product_long] plugin, make sure to record the current configuration set in the configurable pipelines.
20+
* For Groovy, you will need to update the **Pipeline** script; under **Pipelines** > **Pipeline_Name** > **Configuration**, replacing the `synopsys_detect detectProperties:` portion of the script with `blackduck_detect detectProperties:`
21+
22+
Example:
23+
```
24+
node ('built-in') {
25+
26+
stage ('Git - Checkout') {
27+
git 'https://github.com/yarnpkg/example-yarn-package.git'
28+
}
29+
stage ('Black Duck - Detect') {
30+
blackduck_detect detectProperties: '--blackduck.trust.cert=true --detect.wait.for.results=true', downloadStrategyOverride: [$class: 'ScriptOrJarDownloadStrategy']
31+
32+
}
33+
}
34+
```
35+
36+
* For the System Configuration and [bd_product_long], before upgrading to the [detect_product_long] plugin, make sure to back up, or record the current configuration set for the [bd_product_short] URL and token that you have set in Manage Jenkins > Configure System > [detect_product_long] section.
37+
* If you are using Air Gap mode, before upgrading to the [detect_product_long] plugin, make sure to save the current tool configuration that you have set in Manage Jenkins > Tools > Detect Air Gap mode.
38+
39+
## Updating the [detect_product_long] for Jenkins plugin
40+
You can update the [detect_product_short] for Jenkins plugin when new versions are released.
41+
42+
1. Navigate to **Manage Jenkins** > **Manage Plugins**.
43+
1. Click the **Updates** tab.
44+
1. Select **Blackduck Detect**
45+
1. If there are updates for the [detect_product_short] for Jenkins plugin, the updates display in the list. If there is not an available update, the [detect_product_short] for Jenkins plugin does not display in this list.
46+
1. Alternatively, you can force Jenkins to check for plugin updates by clicking **Check now** on the **Updates** tab.
47+
1. If there are updates, select the one you want, and click **Download now and install after restart**.
2448

2549
<!-- Commenting out until the script is updated to support the current releases
2650
## Migrating from plugin version 1.5.0
Loading
Loading

documentation/src/main/markdown/integrations/jenkinsplugin/jenkins.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Jenkins Plugin
22

3-
The [company_name] [detect_product_short] for Jenkins plugin enables you to install and run [detect_product_short] in your Jenkins instance. 
3+
The [detect_product_short] for Jenkins plugin enables you to install and run [detect_product_short] in your Jenkins instance. 
44

55
[detect_product_short] scans code bases in your projects and folders to perform compositional analysis and functions as a [bd_product_short] intelligent scan client. [detect_product_short] sends scan results to [bd_product_short], which generates risk analysis when identifying open source components, licenses, and security vulnerabilities.
66

Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Requirements for [detect_product_short] for Jenkins
22

3-
Requirements for [company_name] [detect_product_short] for Jenkins which may be in addition to those for [detect_product_short].
3+
Requirements for [detect_product_short] for Jenkins which may be in addition to those for [detect_product_short].
44

55
* Access to the internet is required to download components from GitHub and other locations.
66
* Minimum 8GB RAM.
77
* Java: OpenJDK 64-bit version 8, 11, 13, 14, 15, 16, or 17. If using Java 11: 11.0.5 or higher is required.
8-
* Jenkins minimum version of 2.401.3.
8+
* Jenkins minimum version of 2.426.3.

documentation/src/main/markdown/integrations/jenkinsplugin/pluginreleasenotes.md

+27
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# Release Notes for Jenkins Plugin
22

3+
## **Version 10.0.0**
4+
5+
**Notice**
6+
7+
The [company_name] Software Integrity Group is now [var_company_name]
8+
* As part of this activity, sig-repo.synopsys.com and detect.synopsys.com are being deprecated and will be decommissioned in Feb. 2025. Please make use of repo.blackduck.com and detect.blackduck.com respectively.
9+
* Refer to the [Black Duck Domain Change FAQ](https://community.blackduck.com/s/article/Black-Duck-Domain-Change-FAQ#SDInstru).
10+
11+
[company_name] [solution_name] Jenkins plugin is now the [detect_product_long] Jenkins plugin.
12+
13+
For existing users, the [detect_product_long] Jenkins plugin should be considered a fresh installation as the domain has changed.
14+
Before moving from the [detect_product_short] Jenkins plugin to the [detect_product_long] Jenkins plugin, you should record your existing system configuration. See additional information about upgrading from the [detect_product_short] Jenkins plugin to the [detect_product_long] Jenkins plugin under [Downloading and Installing.](../jenkinsplugin/downloadingandinstalling.md#updating-existing-jenkins)
15+
16+
<note type="note">For continued functionality and to receive future updates to the Jenkins plugin, you must upgrade to [detect_product_long] Jenkins plugin version 10.0.0 prior to February 14th, 2025.</note>
17+
18+
If you are a new user, you may proceed with installing the [detect_product_long] Jenkins plugin as per [Downloading and Installing](../jenkinsplugin/downloadingandinstalling.md).
19+
20+
**Changed features**
21+
22+
* (IDTCTJNKNS-277) Updated to use the new 'blackduck' namespace.
23+
* Updated to use [detect_product_long] 10.x.x for execution.
24+
* Jenkins version 2.426.3 or later is required.
25+
26+
**Resolved issues**
27+
28+
* The plugin has been built against upgraded Jenkins/Jenkins plugin versions to mitigate known security risks.
29+
330
## **Version 9.0.0**
431
**New features**
532

documentation/src/main/markdown/integrations/jenkinsplugin/runninginjenkins.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Running [detect_product_short] in Jenkins
1+
# Running [detect_product_long] in Jenkins
22

3-
By default, [company_name] [detect_product_short] for Jenkins downloads either the latest [detect_product_short] shell script when run on a UNIX node, or PowerShell script when it's run on a Windows node, to the Jenkins tools directory, and then executes that script. Note that you can also use the JAR option to run [detect_product_short].
3+
By default, [detect_product_short] for Jenkins downloads either the latest [detect_product_short] shell script when run on a UNIX node, or PowerShell script when it's run on a Windows node, to the Jenkins tools directory, and then executes that script. Note that you can also use the JAR option to run [detect_product_short].
44

55
The [detect_product_short] PowerShell or shell script is downloaded once and placed in the [detect_product_short] working directory. If you want to force the plugin to fetch the latest script, clear out the Detect directory in your Jenkins tools directory.
66

@@ -33,4 +33,4 @@ Refer to the [freestyle example](../../integrations/jenkinsplugin/jenkinsfreest
3333
## DSL considerations
3434
The [detect_product_short] for Jenkins plugin provides Dynamic DSL for both freestyle steps and pipeline steps. Read more at [Dynamic DSL](https://github.com/jenkinsci/job-dsl-plugin/wiki/Dynamic-DSL).
3535

36-
**Note:** that versions 1.72 and later of the DSL plugin do not support the [company_name] [detect_product_short] for Jenkins plugin pipeline steps.
36+
**Note:** that versions 1.83 and later of the DSL plugin do not support the [detect_product_short] for Jenkins plugin pipeline steps.

0 commit comments

Comments
 (0)