That is what I would like to do. It almost seems to work. The logs reports:
[JENKINS] Archiving site from /Users/Shared/Jenkins/Home/workspace/Java Test/target/site to /var/lib/jenkins/jobs/Java Test/site Which makes me think that the Jenkins job is aware of the site. But then I receive a number of errors, starting with: message : Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:site (default-site) on project test: SiteToolException: The site descriptor cannot be resolved from the repository: ArtifactResolutionException: Unable to locate site descriptor: Could not transfer artifact groupId:parent-pom:xml:site_en:1 from/to my-repository This causes the build to fail. Afterward, the Jenkins job page has a link for a "Maven-generated site", but I receive a 404 when following that link. The URL of the link matches the pattern you described. I am using a Maven job type. Here is my "goals and options" line: clean deploy javadoc:javadoc site Thanks. David On Saturday, February 23, 2013 9:13:49 AM UTC-6, Jesse Farinacci wrote: > > Greetings, > > On Sat, Feb 23, 2013 at 3:07 AM, Stephen Connolly > <stephen.al...@gmail.com <javascript:>> wrote: > > On Saturday, 23 February 2013, David V wrote: > >> Is there a way to have Jenkins host a Maven site, much like the way > that > >> the Javadoc plugin works? With the Javadoc plugin, I can view the > latest > >> Javadoc of a job directly from its main page. I am interested in a > similar > >> feature for Maven sites. > > > > The HTML publisher plugin could capture the content for you. > > You'd need to tweak the /project/url to match the Jenkins job otherwise > some > > of the links will be broken (probably override with a system property > that > > activates a profile which overrides the url so that the model is valid > > without the system property defined - or use a pom property to set a > > default...) > > You may need to fake out one or two other steps also. > > Or you could just be less Maven job type adverse, and simply run the > site phase. Jenkins will make the site available at > $JENKINS/job/$JOB/site without any additional work. > > -Jesse > > -- > There are 10 types of people in this world, those > that can read binary and those that can not. > -- 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-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.