Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54779

Publish site reports

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • pipeline-maven-plugin
    • None

      Maven projects automatically archive Maven-generated sites. The site is served under job/<job-name>/site/. It would be great if it would be possible to do the same by withMaven, example:

      stage('Build Docs') {
        steps {
          withMaven(publisherStrategy: 'EXPLICIT' options: [
            sitePublisher(disabled: false)
          ]) {
            sh "mvn site"
          }
        }
      }
      

      Now I use the following workaround:

      stage('Build Docs') {
        steps {
          withMaven(publisherStrategy: 'EXPLICIT' options: [
            sitePublisher(disabled: false)
          ]) {
            sh "mvn site"
          }
          dir('target') {
            archiveArtifacts artifacts: 'site/**'
          }
        }
      }
      

      Documentation is available under:
      job/<job-name>/job/<branch-name>/lastSuccessfulBuild/artifact/site/ (user is forced to click index.html).

            Unassigned Unassigned
            agabrys Adam Gabryś
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: