jenkinsci / last-changes-plugin

https://plugins.jenkins.io/last-changes
https://plugins.jenkins.io/last-changes/
31 stars 30 forks source link

Update Jenkinsfile to Display Latest Changed Files #115

Closed Dhanushcdivakar closed 3 days ago

Dhanushcdivakar commented 3 days ago

This update enhances the Jenkinsfile to include functionality for displaying the names of files changed in the latest commit during the pipeline execution. Specifically:

Added a new stage to identify and list the changed files using git diff --name-only. Ensured compatibility with the existing pipeline by retaining the buildPlugin() step for building the plugin. Improved visibility of changes in the repository, aiding debugging and providing additional context during builds. This change is scoped to improve the utility of the pipeline for developers without impacting existing workflows or requiring additional plugins on the Jenkins controller.