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

Check Jenkinsfile presence #43

Merged
merged 2 commits into from
Jun 24, 2024
Merged

Check Jenkinsfile presence #43

merged 2 commits into from
Jun 24, 2024

Conversation

sridamul
Copy link
Contributor

@sridamul sridamul commented Jun 24, 2024

related to #41

Updates...

  1. Converted Recipe to Scanning recipe to check the presence of source files.

Now we are able to check the presence of Jenkinsfile in a plugin directory. Right now, the execution of this recipe stores the metadata locally in the target directory in JSON format. As suggested by @gounthar in this comment we can store the result in external sources in the following PR after discussions.

Testing done

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

@sridamul sridamul requested a review from a team as a code owner June 24, 2024 09:18
Copy link
Collaborator

@gounthar gounthar left a comment

Choose a reason for hiding this comment

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

Thank you, Sridhar.

I have a small suggestion: it would be helpful if we could keep the pull requests (PRs) "atomic", focusing on one goal at a time.

For instance, you removed a dependency in the pom file. While this is a valuable change, it could have been submitted as a separate PR later.

This approach helps us maintain a clearer history and makes reviews more straightforward.

@sridamul
Copy link
Contributor Author

Reverted back unrelated changes from the PR. Thanks @gounthar.

@jonesbusy jonesbusy merged commit 91d00ff into jenkins-infra:main Jun 24, 2024
13 checks passed
@sridamul sridamul deleted the check-jenkinsfile-presence branch June 24, 2024 11:22
@gounthar
Copy link
Collaborator

Thanks a lot! 🙏

@jonesbusy jonesbusy added the enhancement For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted label Jul 12, 2024
jonesbusy pushed a commit that referenced this pull request Oct 18, 2024
Fixes #43

Implement the remediation function for `MAVEN_REPOSITORIES_HTTP` to replace 'http' with 'https' in repository URLs.

* Modify `plugin-modernizer-core/src/main/java/io/jenkins/tools/pluginmodernizer/core/model/PreconditionError.java` to include the remediation function that uses `PomModifier` to replace 'http' with 'https' in repository URLs.
* Add a method `replaceHttpWithHttps` in `plugin-modernizer-core/src/main/java/io/jenkins/tools/pluginmodernizer/core/utils/PomModifier.java` to replace 'http' with 'https' in repository URLs.
* Add tests in `plugin-modernizer-core/src/test/java/io/jenkins/tools/pluginmodernizer/core/extractor/MetadataCollectorTest.java` to verify the functionality of the remediation function for `MAVEN_REPOSITORIES_HTTP`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/gounthar/plugin-modernizer-tool/issues/43?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants