Skip to content

Support for Maven reproducible builds#104

Merged
jglick merged 1 commit into
jenkinsci:masterfrom
basil:reproducible
Apr 12, 2024
Merged

Support for Maven reproducible builds#104
jglick merged 1 commit into
jenkinsci:masterfrom
basil:reproducible

Conversation

@basil

@basil basil commented Apr 12, 2024

Copy link
Copy Markdown
Member

Add support for Maven reproducible builds when Maven Release Plugin is not in use, regardless of whether project.build.outputTimestamp is (as would be the case for a plugin that still used MRP for production releases but used Incrementals for PR releases) or is not (as would be the case for a plugin that fully implemented automated release) defined in pom.xml.

Testing done

Verified that when passing -Dset.changelist Maven couldn't verify an incrementals build with mvn clean verify artifact:compare before this PR but could verify it after this PR.

Fixes #103

hash = head.abbreviate(ABBREV_LENGTH).name();
try (RevWalk walk = new RevWalk(repo)) {
RevCommit headC = walk.parseCommit(head);
timestamp = DateTimeFormatter.ISO_INSTANT.format(Instant.ofEpochSecond(headC.getCommitTime()));

@jglick jglick Apr 12, 2024

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@jglick

jglick commented Apr 12, 2024

Copy link
Copy Markdown
Member

@basil I am ready to merge this and release 1.8 unless you have any last-minute requests?

@basil

basil commented Apr 12, 2024

Copy link
Copy Markdown
Member Author

No last-minute requests on my side. Thank you!

@jglick
jglick merged commit 941aabd into jenkinsci:master Apr 12, 2024
@basil
basil deleted the reproducible branch April 12, 2024 19:46
MarkEWaite pushed a commit to jenkins-infra/jenkins.io that referenced this pull request Apr 12, 2024
@jglick

jglick commented Apr 12, 2024

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for Maven reproducible builds

2 participants