jenkins-library icon indicating copy to clipboard operation
jenkins-library copied to clipboard

feat(detectExecuteScan): Add `useDetect9` for latest BlackDuck script

Open bugwelle opened this issue 2 years ago • 12 comments

detect8.sh is no longer the most recent version of the BlackDuck runner. detect9.sh is now available and fixes some important bugs such as incorrect dependency reporting for package-lock.json's in version 2 and 3.

This commit adds detect9.sh support by adding a new detectExecuteScan option useDetect9, similar to the old option useDetect8.

See release notes of Synopsis Detect:

  • https://sig-product-docs.synopsys.com/bundle/integrations-detect/page/currentreleasenotes.html

Changes

  • [ ] Tests
  • [ ] Documentation

bugwelle avatar Oct 30 '23 14:10 bugwelle

@CCFenner Is there anything else I can do? Or do I need a review by someone else? If so, could you assign/ping them? :) I don't have permission to merge this, regardless of your approval and passed CI tests.

Regards, Andre

bugwelle avatar Nov 17 '23 13:11 bugwelle

Hello @bugwelle , could you please regenerate _generated file ?

dimaste avatar Nov 20 '23 13:11 dimaste

@dimaste Sure! Done. Btw: Isn't detect8 still the default? Or was the default: false change only for documentation? 😄

bugwelle avatar Nov 20 '23 13:11 bugwelle

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Nov 20 '23 13:11 sonarqubecloud[bot]

This is the default value, but we don't use it actually. It works in any case where no other detect version parameter is provided.

@dimaste Sure! Done. Btw: Isn't detect8 still the default? Or was the default: false change only for documentation? 😄

dimaste avatar Nov 20 '23 13:11 dimaste

@bugwelle we discussed your PR with product management. We can merge it after the server upgrade which we should complete by the end of the year. The reason is that the current server version does not officially support it.

I'll merge it once the server is upgraded. For now, let's keep the PR.

dimaste avatar Nov 20 '23 13:11 dimaste

The reason is that the current server version does not officially support it.

@dimaste Oh! 😄 We're already using detect9.sh for some projects and didn't notice anything off.

Thanks for reviewing it. :)

bugwelle avatar Nov 20 '23 14:11 bugwelle

Sure I see your concern, you can try to pass this as a workaround in Piper config of detect step for your scenario

customEnvironmentVariables: - 'DETECT_LATEST_RELEASE_VERSION=9.1.0'

dimaste avatar Nov 20 '23 14:11 dimaste

Sure I see your concern, you can try to pass this as a workaround in Piper config of detect step for your scenario

customEnvironmentVariables: - 'DETECT_LATEST_RELEASE_VERSION=9.1.0'

Awesome! I'll try it out. I didn't find that option myself. :)

Regards, Andre

bugwelle avatar Nov 20 '23 14:11 bugwelle

Thank you for your contribution! This pull request is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add @SAP/jenkins-library-team to your comment.

github-actions[bot] avatar Feb 12 '24 00:02 github-actions[bot]

@dimaste I've updated the PR. It seems that useDetect7/8 was removed during the last 3 months. I've added useDetect9 again.

@SAP/jenkins-library-team can you remove the stale label?

bugwelle avatar Feb 12 '24 08:02 bugwelle

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

sonarqubecloud[bot] avatar Feb 27 '24 11:02 sonarqubecloud[bot]

Thank you for your contribution! This pull request is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add @SAP/jenkins-library-team to your comment.

github-actions[bot] avatar Apr 28 '24 00:04 github-actions[bot]

@dimaste I've rebased the PR. It seems that useDetect7/8 was removed during the last 5 months. I've added useDetect9 again.

@SAP/jenkins-library-team can you remove the stale label?

bugwelle avatar Apr 29 '24 05:04 bugwelle