On 24 February 2012 15:46, Sandro Martini <[email protected]> wrote: > Hi all, > in Pivot we have a similar setup (even in Jenkins): build made with > ant, and use ant maven tasks for some things, if you want, take a look > at it ... or ask to me if you need some info (I assume that our setup > in Jenkins is right :-) ).
Thanks. I've had a look at the Pivot build - as far as I can tell the deploy target merely installs the output locally; it does not deploy to the snapshot staging repo. In fact I cannot find any pivot jars or even the top-level folder in the snapshot repos. > Note that I tried to enable the "Publish artifacts to SCP Repository", > but then the listbox where to chose the snapshot repository is empty > ... someone knows how to do to set there the right value ? > > Bye, > Sandro > > > 2012/2/24 sebb <[email protected]>: >> On 24 February 2012 09:19, Olivier Lamy <[email protected]> wrote: >>> 2012/2/24 sebb <[email protected]>: >>>> On 24 February 2012 03:08, Benson Margulies <[email protected]> wrote: >>>>> On Thu, Feb 23, 2012 at 8:51 PM, sebb <[email protected]> wrote: >>>>>> Do any of the build systems support deployment of Maven snapshots? >>>>>> >>>>> >>>>> yes. >>>>> >>>>>> If so, how can this be added to a build? >>>>> >>>>> In Jenkins by ticking the box in the job config or adding 'deploy' to >>>>> the list of maven goals. >>>> >>>> Which box is that? >>>> If it is "Publish artifacts to SCP Repository" then there does not >>>> seem to be an SCP site; also it's not clear what the target path >>>> should be. >>>> >>>> [The build does not use Maven] >>> >>> In such case, you must use ant (if your build is ant based) maven >>> tasks to deploy snapshots to >>> https://repository.apache.org/content/repositories/snapshots (server >>> id to use: apache.snapshots.https ). >>> Jenkins nodes have the necessary ~/.m2/settings.xml (normally :-) ). >> >> The build uses Ant, but does not use the ant maven tasks - are those >> installed on Jenkins nodes? >> >> Alternatively, is there a standard location or env variable that >> points to the Maven installation on Jenkins nodes? >> >> The script currently uses Java to run Maven as per [1] >> This relies on finding the maven home directory via the M2_HOME >> variable, which does not seem to be set on Jenkins. >> >> [1] http://maven.apache.org/ant-tasks/examples/mvn.html#Using_the_Java_Task >> >>> -- >>> Olivier Lamy >>> Talend: http://coders.talend.com >>> http://twitter.com/olamy | http://linkedin.com/in/olamy
