Skip to content

Conversation

@manandbytes
Copy link
Contributor

No description provided.

There is no reason to duplicate the same steps to build list of diff
lines for two config files. Instead, extract this logic into a
separate method, pull it up to JobConfigHistoryBaseAction and let
three children of JobConfigHistoryBaseAction reuse it.

Signed-off-by: Mykola Nikishov <[email protected]>
Instead of relying on core to store XML configs in a deterministic
way, Job Config History plugin adds an intermediate step before
converting XML to string representation and computing textual diff:

- sort XML elements and attributes alphabetically
- remove empty XML elements and attributes

This way list of changed lines is deterministic and contains minimal
semantically useless changes.

Signed-off-by: Mykola Nikishov <[email protected]>
@Jochen-A-Fuerbacher Jochen-A-Fuerbacher merged commit 145c9d5 into jenkinsci:master Feb 5, 2019
@Jochen-A-Fuerbacher
Copy link
Member

Thanks, @manandbytes !

@manandbytes manandbytes deleted the jenkins-41177 branch February 8, 2019 11:52
@manandbytes
Copy link
Contributor Author

Thanks, @manandbytes !

You're welcome!
Any plans to release latest changes?

@Jochen-A-Fuerbacher
Copy link
Member

I'm looking forward to make a new release, soon. I just wait on #79.

@Jochen-A-Fuerbacher
Copy link
Member

@manandbytes New version released.

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