Problem deploying .zip artifacts from Maven to Nexus repo

629 views
Skip to first unread message

Andrew

unread,
Apr 27, 2011, 8:25:21 AM4/27/11
to Jenkins Users
Hi I am new on the list.
I Have recently started using Jenkins (currently using version 1.408).
but I have a problem when deploying .zip artifacts.
I have a Maven multi module project which produces a number of Jar and
zip files which I want to deploy to a Nexus Maven repository.

Using the "Post Build Action" Deploy artifacts to Maven repository the
build starts deploying the artifacts, but it stops deploying at the
first zip file it encounters. It says build succeeded and after that
it gives an out of memory exception (though I think the out of memory
error is not the problem).

When I look at the workspace all of the artifacts have built
correctly.
If I use the redeploy option I can deploy even the ones that didn't
deploy earlier, but if I try to deploy one of the .zip artifacts the
artifact does not transfer but htere are no errors in the logs.

Has anybody ever encountered this behaviour?

Thank you for any light you can shed on this :-)

Torsten Mandry

unread,
Aug 12, 2011, 2:41:30 AM8/12/11
to jenkins...@googlegroups.com
Hi Andrew,

did you find a solution for your problem, yet?

I'm getting the same OutOfMemory Exception when I try to deploy a WAR-Archive (~35 MB) to a Nexus repository. When calling mvn deploy on the command line I have to set some MAVEN_OPTS to get it succeed. 

I tried to set the MAVEN_OPTS parameter in Jenkins Config, in the Build-Project Config and in the operation system of my Jenkins host. None of that solves my problem. 

It looks like the Jenkins MAVEN_OPTS settings are not used for the post build deployment task.

Perhaps, you or some other members of this group know what to do.

Regards,
Torsten

Olivier Lamy

unread,
Aug 12, 2011, 3:12:23 AM8/12/11
to jenkins...@googlegroups.com
Hello ,
The post deploy publisher is executed inside the jenkins master.
The only solution is to increase master memory

2011/8/12 Torsten Mandry <torsten...@googlemail.com>:

--
Olivier Lamy
Talend : http://talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

Torsten Mandry

unread,
Aug 12, 2011, 7:01:21 AM8/12/11
to Jenkins Users
Hi Olivier.

> The only solution is to increase master memory

And how do I do that?

Tanks,
Torsten

Olivier Lamy

unread,
Aug 12, 2011, 8:17:05 AM8/12/11
to jenkins...@googlegroups.com
Depends how you use jenkins in a servlet container or the runnable jar.
But the usual stuff is to add -Xmx<some reasonable value> in the cli
which start the java process responsable to run jenkins.


2011/8/12 Torsten Mandry <torsten...@googlemail.com>:

--

Torsten Mandry

unread,
Aug 12, 2011, 8:34:15 AM8/12/11
to Jenkins Users
Hi Olivier,

I run Jenkins in a tomcat servlet container. I tried to set -Xms and -
Xmx parameters in the CATALINA_OPTS and restarted tomcat. The
OutOfMemory Exception still occurs :(

Regards,
Torsten


On 12 Aug., 14:17, Olivier Lamy <oliver.l...@gmail.com> wrote:
> Depends how you use jenkins in a servlet container or the runnable jar.
> But the usual stuff is to add -Xmx<some reasonable value> in the cli
> which start the java process responsable to run jenkins.
>
> 2011/8/12 Torsten Mandry <torsten.man...@googlemail.com>:
Reply all
Reply to author
Forward
0 new messages