Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Storing a build number in Git repository

Sounds like a canonical use for git-notes IMHO:

https://www.kernel.org/pub/software/scm/git/docs/git-notes.html
http://git-scm.com/blog/2010/08/25/notes.html
https://github.com/eclipse/jgit/blob/master/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/NotesCommandTest.java


On Mon, Aug 4, 2014 at 6:38 PM, Jason van Zyl <jason@xxxxxxxxx> wrote:
Hi,

Is there be a safe, atomic, way to store a build number in a Git repository using JGit? Let's assume the Git repository in question is canonical and there is a corresponding canonical build server. I would like to remove any reliance on an external systems, would prefer not to store the build number in a file that users can see, and prefer not to pollute the repository with log entries corresponding to modifying the build number. If a build succeeded I would like to do something akin to amend the commit that built where I stuff the build number somewhere I can retrieve, except I don't want to actually amend the commit message.

Maybe this is simply inappropriate to do, but wanted to see if anyone has any thoughts.

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/takari_io
---------------------------------------------------------

Simplex sigillum veri. (Simplicity is the seal of truth.)










_______________________________________________
jgit-dev mailing list
jgit-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jgit-dev



--
Cheers,

Chris Aniszczyk
http://aniszczyk.org
+1 512 961 6719

Back to the top