Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert Git commit hash into build artifacts #59

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 28 additions & 0 deletions org.jacoco.build/pom.xml
Expand Up @@ -369,6 +369,11 @@
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.2</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId>
Expand Down Expand Up @@ -527,6 +532,7 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
Expand All @@ -552,6 +558,25 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
<getRevisionOnlyOnce>true</getRevisionOnlyOnce>
<revisionOnScmFailure>0</revisionOnScmFailure>
</configuration>
</plugin>
</plugins>
</build>

Expand Down Expand Up @@ -703,6 +728,9 @@
<configuration>
<archive>
<manifestFile>${bundle-manifest}</manifestFile>
<manifestEntries>
<Eclipse-SourceReferences>scm:git:git://github.com/jacoco/jacoco.git;path="${project.artifactId}";commitId=${buildNumber}</Eclipse-SourceReferences>
</manifestEntries>
</archive>
</configuration>
</plugin>
Expand Down
10 changes: 10 additions & 0 deletions org.jacoco.doc/docroot/doc/changes.html
Expand Up @@ -20,6 +20,16 @@ <h1>Change History</h1>

<h2>Trunk Build @qualified.bundle.version@ (@build.date@)</h2>

<h3>New Features</h3>

<h3>Fixed Bugs</h3>

<h3>Non-functional Changes</h3>
<ul>
<li>For every build the corresponding Git commit hash is included as
<code>Eclipse-SourceReferences</code> manifest headers (GitHub #7, #59).</li>
</ul>

<h2>Release 0.6.1 (2012/12/23)</h2>

<h3>New Features</h3>
Expand Down
4 changes: 3 additions & 1 deletion org.jacoco.doc/docroot/index.html
Expand Up @@ -23,7 +23,9 @@ <h1>JaCoCo - Java Code Coverage Library</h1>
</p>

<p>
This is the distribution of version @qualified.bundle.version@ created on @build.date@.
This is the distribution of version @qualified.bundle.version@ created on
@build.date@ based on commit
<a href="https://github.com/jacoco/jacoco/tree/@buildNumber@">@buildNumber@</a>.
</p>

<h2>Contents</h2>
Expand Down