jenkins maven plugin: How to automatically archive maven artifacts?

2,055 views
Skip to first unread message

Dmitry Katsubo

unread,
Dec 14, 2012, 10:47:37 AM12/14/12
to jenkins...@googlegroups.com
Dear Jenkins users,

I have migrated free-style jobs recently from Hudson to Jenkins and I miss the following feature.

With Maven3 Plugin (in Hudson) it was possible to configure the job to archive maven artifacts, in particular the following options where available as post-build actions:



   

I cannot find such options in settings for Jenkins job (Maven plugin is installed). Checking the sources showed that e.g. maven-plugin/WEB-INF/classes/hudson/maven/reporters/MavenArtifactArchiver.class is present, but no hints how to activate it. Any ideas?

What I want to achieve is automatic archiving of Maven artifacts, attached to lifecycle (including those by maven-assebly-plugin). I am a bit reluctant to define **/target/*.jar,**/target/*.war,... for every project.

Thanks.

Daniel Carter

unread,
Mar 4, 2014, 10:54:27 PM3/4/14
to jenkins...@googlegroups.com
Yes i have the same problem.  There is an option in the settings to "Disable automatic artifact archiving", which implies archiving is automatic, but none of my jenkins jobs archive any artifacts.  

It used to work a long time ago, how can we restore this behaviour?

Dmitry Katsubo

unread,
Mar 5, 2014, 4:42:56 AM3/5/14
to jenkins...@googlegroups.com
I have filed JENKINS-21522 in relation to that. Vote for it…

Eric Wood

unread,
Mar 5, 2014, 10:55:00 AM3/5/14
to jenkins...@googlegroups.com
Have you considered using something like artifactory and its associated plugin.  There is a free version that you can try and you can add the associated plugin for archiving assets in the binary repository.

Eric


On Wednesday, March 5, 2014 4:43 AM, Dmitry Katsubo <dmitry....@gmail.com> wrote:
I have filed JENKINS-21522 in relation to that. Vote for it…

On Wednesday, 5 March 2014 04:54:27 UTC+1, Daniel Carter wrote:
Yes i have the same problem.  There is an option in the settings to "Disable automatic artifact archiving", which implies archiving is automatic, but none of my jenkins jobs archive any artifacts.

It used to work a long time ago, how can we restore this behaviour?

On Saturday, 15 December 2012 04:47:37 UTC+13, Dmitry Katsubo wrote:
Dear Jenkins users,

I have migrated free-style jobs recently from Hudson to Jenkins and I miss the following feature.

With Maven3 Plugin (in Hudson) it was possible to configure the job to archive maven artifacts, in particular the following options where available as post-build actions:



   

I cannot find such options in settings for Jenkins job (Maven plugin is installed). Checking the sources showed that e.g. maven-plugin/WEB-INF/classes/ hudson/maven/reporters/ MavenArtifactArchiver.class is present, but no hints how to activate it. Any ideas?


What I want to achieve is automatic archiving of Maven artifacts, attached to lifecycle (including those by maven-assebly-plugin). I am a bit reluctant to define **/target/*.jar,**/target/*. war,... for every project.

Thanks.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Dmitry Katsubo

unread,
Mar 5, 2014, 12:29:42 PM3/5/14
to jenkins...@googlegroups.com
That is vary good point Eric. Indeed, there is Nexus repository behind CI. Unfortunately it is configured to store only the latest (SNAPSHOT) version of artifacts (I cannot influence that policy), however I would like to go back in build history and get previous version from build history. Artifacts are not only binaries, but also sources, javadocs, test reports, ...

--
With best regards.
Dmitry


--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/_NgjQxzUvnQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

Daniel Carter

unread,
Mar 5, 2014, 2:54:49 PM3/5/14
to jenkins...@googlegroups.com
Hrm,  most of my maven jobs build one maven project. i.e. they are not multi-module builds.

I would like the artifacts to be displayed on the main page of the job.

It turns out if you click on modules on the left hand menu, then click on the single module with the same name as the project, then you get the page that i am expecting as the main page, with links to download the artifacts.

How can i collapse down this unnecessary nesting?
Reply all
Reply to author
Forward
0 new messages