Skip to content

Conversation

@CCFenner
Copy link
Member

@CCFenner CCFenner commented Sep 18, 2025

Description

This extracts parts of the python step to an own python package and adding dedicated tests.

additional changes:

  • disable pip warning with --root-user-action=ignore
  • use python from virtualEnv and install therefore missing wheel package

Checklist

  • Tests
  • Documentation
  • Inner source library needs updating

preliminary to #5463

@CCFenner CCFenner force-pushed the python-pkg branch 3 times, most recently from 9e2d869 to 90c94a5 Compare September 19, 2025 07:22
@CCFenner CCFenner force-pushed the python-pkg branch 8 times, most recently from d26e8d5 to cba72f6 Compare September 19, 2025 10:40
@CCFenner CCFenner marked this pull request as ready for review September 19, 2025 11:01
@CCFenner CCFenner requested a review from a team as a code owner September 19, 2025 11:01
@CCFenner CCFenner force-pushed the python-pkg branch 2 times, most recently from 4dc7bc3 to 391eaf9 Compare September 19, 2025 11:20

err := createVirtualEnvironment(utils, config, virutalEnvironmentPathMap)
if err != nil {
if err := python.CreateVirtualEnvironment(utils.RunExecutable, config.VirutalEnvironmentName); err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

Can we fix the typo in VirutalEnvironmentName? With the current parameter name as alias to make it a non-breaking change...

}

return nil
return python.RemoveVirtualEnvironment(utils.RemoveAll, config.VirutalEnvironmentName)
Copy link
Member

Choose a reason for hiding this comment

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

Could also be done with defer, in case for example publishing fails.

@CCFenner CCFenner added the ON HOLD Issue / PR is blocked label Sep 20, 2025
@CCFenner CCFenner removed the ON HOLD Issue / PR is blocked label Sep 22, 2025
@CCFenner
Copy link
Member Author

/it-go

@sonarqubecloud
Copy link

@CCFenner
Copy link
Member Author

/it-go

@CCFenner CCFenner merged commit 6740963 into master Sep 23, 2025
17 of 18 checks passed
@CCFenner CCFenner deleted the python-pkg branch September 23, 2025 07:59
yuriy-tereshchuk-sap pushed a commit to yuriy-tereshchuk-sap/jenkins-library that referenced this pull request Sep 23, 2025
maxatsap added a commit to maxatsap/jenkins-library that referenced this pull request Sep 24, 2025
* origin:
  feat: add error pattern messages for build and scan steps (SAP#5457)
  refactor(python): create python package (SAP#5482)
  fix(python): correct parameter typo (SAP#5485)
  fix(CxOne): Fix incremental scan count and full scan cycle handling (SAP#5481)
  CxOne: Update compliance check for audited findings (SAP#5480)
  Disable TransportSkipVerification in sonarExecuteScan (SAP#5430)
  fix: Remove `--hide-secret` non-existent flag from helm uninstall (SAP#5478)
  feat(codeql): ignore paths and scan paths (SAP#5477)
  chore(renovate): add rule to update python Docker image (SAP#5474)
  Feat(CxOne): incremental scans based on another branch (SAP#5476)
maxatsap added a commit to maxatsap/jenkins-library that referenced this pull request Sep 24, 2025
* origin:
  feat: add error pattern messages for build and scan steps (SAP#5457)
  refactor(python): create python package (SAP#5482)
  fix(python): correct parameter typo (SAP#5485)
  fix(CxOne): Fix incremental scan count and full scan cycle handling (SAP#5481)
  CxOne: Update compliance check for audited findings (SAP#5480)
  Disable TransportSkipVerification in sonarExecuteScan (SAP#5430)
  fix: Remove `--hide-secret` non-existent flag from helm uninstall (SAP#5478)
  feat(codeql): ignore paths and scan paths (SAP#5477)
  chore(renovate): add rule to update python Docker image (SAP#5474)
  Feat(CxOne): incremental scans based on another branch (SAP#5476)
maxatsap added a commit to maxatsap/jenkins-library that referenced this pull request Sep 24, 2025
* origin:
  feat: add error pattern messages for build and scan steps (SAP#5457)
  refactor(python): create python package (SAP#5482)
  fix(python): correct parameter typo (SAP#5485)
  fix(CxOne): Fix incremental scan count and full scan cycle handling (SAP#5481)
  CxOne: Update compliance check for audited findings (SAP#5480)
  Disable TransportSkipVerification in sonarExecuteScan (SAP#5430)
  fix: Remove `--hide-secret` non-existent flag from helm uninstall (SAP#5478)
  feat(codeql): ignore paths and scan paths (SAP#5477)
  chore(renovate): add rule to update python Docker image (SAP#5474)
  Feat(CxOne): incremental scans based on another branch (SAP#5476)
yuriy-tereshchuk-sap pushed a commit to yuriy-tereshchuk-sap/jenkins-library that referenced this pull request Sep 25, 2025
yuriy-tereshchuk-sap pushed a commit to yuriy-tereshchuk-sap/jenkins-library that referenced this pull request Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants