Hi Jeff,
> Is it possible to export the build number or the URL of the artifact
> (SNAPSHOT and release depending on build) that was uploaded to our
internal
> repository or any other information about the build and/or artifacts?
I was pursuing a similar goal a couple weeks ago: I wanted the SCM revision
number embedded in the JAR's manifest. You can indeed do it with codehaus's
buildnumber plugin:
https://github.com/scijava/scijava-common/commit/ccce33c5
As for passing a build number from Jenkins, I think you can send the
BUILD_NUMBER environment variable to Java as a system property via a
command line parameter such as -Djenkins.build=$BUILD_NUMBER, then
reference it in the POM as a Maven property, to do with as you will. GO
presumably has something similar.
I am not sure how best to obtain the deployment URL though.
HTH,
Curtis
On Fri, May 25, 2012 at 6:19 PM, Jeff <[email protected]> wrote:
> Any thoughts on this?
>
> On Thu, May 24, 2012 at 10:16 AM, Jeff <[email protected]> wrote:
>
> > Is it possible to export the build number or the URL of the artifact
> > (SNAPSHOT and release depending on build) that was uploaded to our
> internal
> > repository or any other information about the build and/or artifacts?
> >
> > I saw reference to the build number plugin, but don't necessarily need to
> > generate a custom build number. I just want to be able to grab the
> > information and save or export it somehow. Is that possible?
> >
> > What have others done? The system in question is our GO Continuous
> > deployment pipelines (and some Jenkins jobs). I want to pass the
> > information to downstream jobs for deployment or other tasks. It would
> be
> > nice to get the unique build number and the artifact URL to start.
> >
> > Thanks much!
> >
> > --
> > Jeff Vincent
> > [email protected]
> > See my LinkedIn profile at:
> > http://www.linkedin.com/in/rjeffreyvincent
> > I ♥ DropBox <http://db.tt/9O6LfBX> !!
> >
> >
>
>
> --
> Jeff Vincent
> [email protected]
> See my LinkedIn profile at:
> http://www.linkedin.com/in/rjeffreyvincent
> I ♥ DropBox <http://db.tt/9O6LfBX> !!
>