You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But there is no way to use project.build.outputTimestamp as the initial value of git.build.time,
it is always initialized to the current time of the system:
// git-commit-id-plugin-core : pl.project13.core.cibuild.BuildServerDataProvider
private void loadBuildVersionAndTimeData(@Nonnull Properties properties) {
Supplier<String> buildTimeSupplier = () -> {
Date buildDate = new Date();
SimpleDateFormat smf = new SimpleDateFormat(dateFormat);
if (dateFormatTimeZone != null) {
smf.setTimeZone(TimeZone.getTimeZone(dateFormatTimeZone));
}
return smf.format(buildDate);
};
maybePut(properties, GitCommitPropertyConstant.BUILD_TIME, buildTimeSupplier);
The text was updated successfully, but these errors were encountered:
kylixs
changed the title
Allow project.build.outputTimestamp as the value of git.build.time to support reproducible builds
Allow initial git.build.time from project.build.outputTimestamp to support reproducible builds
Jul 17, 2020
Describe your idea
following Maven's guide https://maven.apache.org/guides/mini/guide-reproducible-builds.html
After add a
project.build.outputTimestamp
property to the project'spom.xml
with the timestamp value, the output should be reproducible.But there is no way to use
project.build.outputTimestamp
as the initial value ofgit.build.time
,it is always initialized to the current time of the system:
The text was updated successfully, but these errors were encountered: