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

feat (url-logger) Implement logic for a selection classifier #4411

Merged
merged 10 commits into from
Jun 26, 2023

Conversation

anilkeshav27
Copy link
Member

@anilkeshav27 anilkeshav27 commented Jun 16, 2023

Changes

Fixes the access log (url-log.json) generation for golangBuild and kanikoExecute. For golangBuild, a selection classifier is added to make the URL detection less strict so that URLs without a protocol are also considered.

  • Tests
  • Documentation

@anilkeshav27 anilkeshav27 requested a review from jliempt June 16, 2023 12:54
@anilkeshav27 anilkeshav27 requested a review from a team as a code owner June 16, 2023 12:54
Copy link
Member Author

@anilkeshav27 anilkeshav27 left a comment

Choose a reason for hiding this comment

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

i dont think we need these changes for other steps, since the url log is only needed for build related steps.

if we implement it for other steps it may overwrite the existing url-log.json . i would restrict it to only npmExecuteScripts, mavenBuild, golangBuild, pythonBuild, kanikoExecute, helmExecute, gradleBuild, mtaBuild

Copy link
Member

@jliempt jliempt left a comment

Choose a reason for hiding this comment

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

Will merge this on Monday.

Moved Maven fix to another PR: #4421.

@jliempt
Copy link
Member

jliempt commented Jun 25, 2023

/it-go

@sonarqubecloud
Copy link

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

@jliempt jliempt merged commit a9bab48 into master Jun 26, 2023
@jliempt jliempt deleted the anil/relaxedURLLogger branch June 26, 2023 06:47
maxatsap pushed a commit to maxatsap/jenkins-library that referenced this pull request Jul 23, 2024
* forcing the urls finder to relaxed

* adding a classifier map

* passing the stepName to the kaniko command executor bundle

* pass stepName to maven utils for mavenBuild

* improve enabling of Maven access log generation

* Revert "improve enabling of Maven access log generation"

This reverts commit 80b7722.

* Revert "pass stepName to maven utils for mavenBuild"

This reverts commit a4f99ae.

* use reflection to update command stepName for mavenBuild

* Revert "use reflection to update command stepName for mavenBuild"

This reverts commit ef85c78.

---------

Co-authored-by: I557621 <[email protected]>
Co-authored-by: Jordi van Liempt <[email protected]>
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.

2 participants