jenkinsci / jenkinsci/last-changes-plugin

Compare current workspace diff with remote

Open
#10 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
32
Forks
32
Avg merge
1d 11h
Merged PRs (30d)
1

Description

I'm in a particular case where I have to deploy sources from one repository (our deploy repo) to customer repository (release source to customer).

I saw that scm is caluclated where the scm is the one where files were committed and for which a build trigger occurred:

https://github.com/jenkinsci/last-changes-plugin/blob/master/src/main/java/com/github/jenkins/lastchanges/LastChangesPublisher.java#L155

In my pipeline I do a second scm checkout and I would like to diff in a way like this:

`svn diff -r PREV:BASE | diff2html -i stdin -s side -F report.html`

Where BASE is workspace with incoming new changes for the customer repo.

Is it possible to point to a different repo to show diff?

Thanks,
Luigi

Contributor guide

Open the contributing guide

Research direction

Start with src/main/java/com/github/jenkins/lastchanges/LastChangesPublisher.java around line 155 to understand how the current SCM is selected. Reproduce the pipeline's second SCM checkout and determine how a different repository could be selected for the comparison. Done means the plugin can generate a diff against that repository, with the behavior verified in an appropriate plugin test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.