Discussion:
Jenkins deployment from Archiva
Malcolm G. Davis
2015-01-22 18:33:52 UTC
Permalink
I would like to create Jenkins job that deploys a war from Archiva.

Is there a specific Jenkins steps or Maven configuration that will read a
war from Archiva and deploy to an application server?

I know many want to auto-deploy after a successful build, but there are
internal QA steps that need to be followed, and there is tracking and
sign-off that needs to occur. The war is required to deploy from Archiva.

Thanks,
Malcolm
Olivier Lamy
2015-01-22 23:06:16 UTC
Permalink
Hi,
If you use the Maven Job type with Jenkins you can activate the post build
step to deploy to Archiva ("Deploy artifacts to Maven repository").
Note you will have to store username/password within Jenkins to deploy to
Archiva.
I recommend you use the plugin ConfigFileProvider to store and share
between jobs.
Post by Malcolm G. Davis
I would like to create Jenkins job that deploys a war from Archiva.
Is there a specific Jenkins steps or Maven configuration that will read a
war from Archiva and deploy to an application server?
I know many want to auto-deploy after a successful build, but there are
internal QA steps that need to be followed, and there is tracking and
sign-off that needs to occur. The war is required to deploy from Archiva.
Thanks,
Malcolm
--
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy
Malcolm G. Davis
2015-01-22 23:24:07 UTC
Permalink
I'm not looking to deploy to Archiva, I have deploying to Archiva working.

I want to deploy from Archiva to an application server.

Working: Jenkins -> Archiva

Need: Archiva -> Jenkins -> Application server

Is there a sample Maven pom.xml that will pull from Archiva internal (release) and send to an application server?

Thank you,
Malcolm

btw: The Archiva user name & password can be stored in the Maven super pom, avoiding the need to configure Jenkins

-----Original Message-----
From: Olivier Lamy [mailto:***@apache.org]
Sent: Thursday, January 22, 2015 5:06 PM
To: ***@archiva.apache.org
Subject: Re: Jenkins deployment from Archiva

Hi,
If you use the Maven Job type with Jenkins you can activate the post build step to deploy to Archiva ("Deploy artifacts to Maven repository").
Note you will have to store username/password within Jenkins to deploy to Archiva.
I recommend you use the plugin ConfigFileProvider to store and share between jobs.
Post by Malcolm G. Davis
I would like to create Jenkins job that deploys a war from Archiva.
Is there a specific Jenkins steps or Maven configuration that will
read a war from Archiva and deploy to an application server?
I know many want to auto-deploy after a successful build, but there
are internal QA steps that need to be followed, and there is tracking and
sign-off that needs to occur. The war is required to deploy from Archiva.
Thanks,
Malcolm
--
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy
Olivier Lamy
2015-01-22 23:57:50 UTC
Permalink
depends on your target app server.
If there is a maven plugin to deploy it that will be easy.
Post by Malcolm G. Davis
I'm not looking to deploy to Archiva, I have deploying to Archiva working.
I want to deploy from Archiva to an application server.
Working: Jenkins -> Archiva
Need: Archiva -> Jenkins -> Application server
Is there a sample Maven pom.xml that will pull from Archiva internal
(release) and send to an application server?
Thank you,
Malcolm
btw: The Archiva user name & password can be stored in the Maven super
pom, avoiding the need to configure Jenkins
-----Original Message-----
Sent: Thursday, January 22, 2015 5:06 PM
Subject: Re: Jenkins deployment from Archiva
Hi,
If you use the Maven Job type with Jenkins you can activate the post build
step to deploy to Archiva ("Deploy artifacts to Maven repository").
Note you will have to store username/password within Jenkins to deploy to Archiva.
I recommend you use the plugin ConfigFileProvider to store and share between jobs.
Post by Malcolm G. Davis
I would like to create Jenkins job that deploys a war from Archiva.
Is there a specific Jenkins steps or Maven configuration that will
read a war from Archiva and deploy to an application server?
I know many want to auto-deploy after a successful build, but there
are internal QA steps that need to be followed, and there is tracking and
sign-off that needs to occur. The war is required to deploy from
Archiva.
Post by Malcolm G. Davis
Thanks,
Malcolm
--
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy
--
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy
Malcolm G. Davis
2015-01-23 01:05:59 UTC
Permalink
Hello Olivier,

If it is easy, can you have an example?

Any app server example will do, and I switch out the app server deployment plugin you use for my specific situation.

Thank you,
Malcolm

-----Original Message-----
From: Olivier Lamy [mailto:***@apache.org]
Sent: Thursday, January 22, 2015 5:58 PM
To: ***@archiva.apache.org
Subject: Re: Jenkins deployment from Archiva

depends on your target app server.
If there is a maven plugin to deploy it that will be easy.
Post by Malcolm G. Davis
I'm not looking to deploy to Archiva, I have deploying to Archiva working.
I want to deploy from Archiva to an application server.
Working: Jenkins -> Archiva
Need: Archiva -> Jenkins -> Application server
Is there a sample Maven pom.xml that will pull from Archiva internal
(release) and send to an application server?
Thank you,
Malcolm
btw: The Archiva user name & password can be stored in the Maven super
pom, avoiding the need to configure Jenkins
-----Original Message-----
Sent: Thursday, January 22, 2015 5:06 PM
Subject: Re: Jenkins deployment from Archiva
Hi,
If you use the Maven Job type with Jenkins you can activate the post
build step to deploy to Archiva ("Deploy artifacts to Maven repository").
Note you will have to store username/password within Jenkins to deploy to Archiva.
I recommend you use the plugin ConfigFileProvider to store and share between jobs.
Post by Malcolm G. Davis
I would like to create Jenkins job that deploys a war from Archiva.
Is there a specific Jenkins steps or Maven configuration that will
read a war from Archiva and deploy to an application server?
I know many want to auto-deploy after a successful build, but there
are internal QA steps that need to be followed, and there is tracking and
sign-off that needs to occur. The war is required to deploy from
Archiva.
Post by Malcolm G. Davis
Thanks,
Malcolm
--
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy
--
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy
Olivier Lamy
2015-01-23 01:13:09 UTC
Permalink
Perso I use tomcat so the tomcat-maven-plugin works fine for that purpose.
The other solution is to use the Jenkins plugin to deploy at the end of
your build. This plugin:
https://wiki.jenkins-ci.org/display/JENKINS/Deploy+Plugin
Post by Malcolm G. Davis
Hello Olivier,
If it is easy, can you have an example?
Any app server example will do, and I switch out the app server deployment
plugin you use for my specific situation.
Thank you,
Malcolm
-----Original Message-----
Sent: Thursday, January 22, 2015 5:58 PM
Subject: Re: Jenkins deployment from Archiva
depends on your target app server.
If there is a maven plugin to deploy it that will be easy.
Post by Malcolm G. Davis
I'm not looking to deploy to Archiva, I have deploying to Archiva
working.
Post by Malcolm G. Davis
I want to deploy from Archiva to an application server.
Working: Jenkins -> Archiva
Need: Archiva -> Jenkins -> Application server
Is there a sample Maven pom.xml that will pull from Archiva internal
(release) and send to an application server?
Thank you,
Malcolm
btw: The Archiva user name & password can be stored in the Maven super
pom, avoiding the need to configure Jenkins
-----Original Message-----
Sent: Thursday, January 22, 2015 5:06 PM
Subject: Re: Jenkins deployment from Archiva
Hi,
If you use the Maven Job type with Jenkins you can activate the post
build step to deploy to Archiva ("Deploy artifacts to Maven repository").
Note you will have to store username/password within Jenkins to deploy to Archiva.
I recommend you use the plugin ConfigFileProvider to store and share between jobs.
Post by Malcolm G. Davis
I would like to create Jenkins job that deploys a war from Archiva.
Is there a specific Jenkins steps or Maven configuration that will
read a war from Archiva and deploy to an application server?
I know many want to auto-deploy after a successful build, but there
are internal QA steps that need to be followed, and there is tracking
and
Post by Malcolm G. Davis
Post by Malcolm G. Davis
sign-off that needs to occur. The war is required to deploy from
Archiva.
Post by Malcolm G. Davis
Thanks,
Malcolm
--
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy
--
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy
--
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy
Loading...