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

Publishers plugins that are not installed shouldn't be called by Pipeline Maven

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • pipeline-maven-plugin
    • None
    • Jenkins 2.93, pipeline-maven 3.0.3

      Using withMaven shows all default publishers on Console Output even if the publisher plugin is not installed.

      I only have JUnit (junit) and Pipeline Maven Integration (pipeline-maven) installed but allĀ  publishers are shown (run!?), creating lots of "noise" in the output.

      [relwithdebinfo] [withMaven]  Evaluate Maven Spy logs: /var/lib/jenkins/workspace/test-build@tmp/withMaven286b7780/maven-spy-20171213-145629-4818544732730429348117.log
      [relwithdebinfo] [withMaven] Maven Publishers with configuration provided by the pipeline: []
      [relwithdebinfo] [withMaven] Maven Publishers with configuration defined globally: []
      [relwithdebinfo] [withMaven] Maven Publishers with default configuration: [org.jenkinsci.plugins.pipeline.maven.publishers.DependenciesFingerprintPublisher[disabled=false, scopes=[compile, provided, runtime], versions={snapshot:true, release:false}], org.jenkinsci.plugins.pipeline.maven.publishers.FindbugsAnalysisPublisher[disabled=false], org.jenkinsci.plugins.pipeline.maven.publishers.GeneratedArtifactsPublisher[disabled=false], org.jenkinsci.plugins.pipeline.maven.publishers.JGivenTestsPublisher[disabled=false], org.jenkinsci.plugins.pipeline.maven.publishers.PipelineGraphPublisher[disabled=false, scopes=[compile, provided, runtime], versions={snapshot:true, release:false}, skipDownstreamTriggers=false, lifecycleThreshold=deploy, ignoreUpstreamTriggers=false], org.jenkinsci.plugins.pipeline.maven.publishers.InvokerRunsPublisher[disabled=false], org.jenkinsci.plugins.pipeline.maven.publishers.JunitTestsPublisher[disabled=false], org.jenkinsci.plugins.pipeline.maven.publishers.TasksScannerPublisher[disabled=false], org.jenkinsci.plugins.pipeline.maven.publishers.ConcordionTestsPublisher[disabled=false]]
      [relwithdebinfo] [withMaven] Use default defined publisher for 'Dependencies Fingerprint Publisher'
      [relwithdebinfo] [withMaven] Use default defined publisher for 'Findbugs Publisher'
      [relwithdebinfo] [withMaven] Use default defined publisher for 'Generated Artifacts Publisher'
      [relwithdebinfo] [withMaven] Use default defined publisher for 'JGiven Publisher'
      [relwithdebinfo] [withMaven] Use default defined publisher for 'Pipeline Graph Publisher'
      [relwithdebinfo] [withMaven] Use default defined publisher for 'Invoker Publisher'
      [relwithdebinfo] [withMaven] Use default defined publisher for 'Junit Publisher'
      [relwithdebinfo] [withMaven] Use default defined publisher for 'Open Task Scanner Publisher'
      [relwithdebinfo] [withMaven] Use default defined publisher for 'Concordion Publisher'
      [relwithdebinfo] [withMaven] Run 'Generated Artifacts Publisher'...
      [relwithdebinfo] [withMaven] artifactsPublisher - ...
      ...
      [relwithdebinfo] [withMaven] artifactsPublisher - Archive and fingerprint artifacts {} located in workspace /var/lib/jenkins/workspace/test-build
      [relwithdebinfo] [withMaven] Run 'Invoker Publisher'...
      [relwithdebinfo] [withMaven] invokerPublisher - No org.apache.maven.plugins:maven-invoker-plugin:run execution found
      [relwithdebinfo] [withMaven] Run 'Junit Publisher'...
      [relwithdebinfo] [withMaven] junitPublisher - No org.apache.maven.plugins:maven-surefire-plugin:test execution found
      [relwithdebinfo] [withMaven] junitPublisher - No org.apache.maven.plugins:maven-failsafe-plugin:integration-test execution found
      [relwithdebinfo] [withMaven] Run 'Concordion Publisher'...
      [relwithdebinfo] [withMaven] concordionPublisher - No concordion output dir pattern given, skip.
      [relwithdebinfo] [withMaven] Run 'Dependencies Fingerprint Publisher'...
      [relwithdebinfo] [withMaven] dependenciesFingerprintPublisher - filter: versions[snapshot: true, release: false], scopes:[compile, provided, runtime]
      [relwithdebinfo] [withMaven] Skip fingerprinting release dependency: MavenDependency{...
      ...
      [relwithdebinfo] [withMaven] Run 'Findbugs Publisher'...
      [relwithdebinfo] [withMaven] Run 'JGiven Publisher'...
      [relwithdebinfo] [withMaven] jgivenPublisher - JGiven not found within your project dependencies, aborting.
      [relwithdebinfo] [withMaven] Run 'Pipeline Graph Publisher'...
      [relwithdebinfo] [withMaven] pipelineGraphPublisher - recordDependencies - filter: versions[snapshot: true, release: false], scopes:[compile, provided, runtime]
      ...
      [relwithdebinfo] [withMaven] pipelineGraphPublisher - recordGeneratedArtifacts...
      [relwithdebinfo] [withMaven] pipelineGraphPublisher - Record generated artifact: my_artifact:1.8, version: 1.8, executedLifecyclePhases: [clean, validate, generate-sources, process-sources, process-resources, compile, process-test-sources, process-test-resources, test-compile, test], skipDownstreamTriggers: false, lifecycleThreshold:deploy, file: /var/lib/jenkins/workspace/test-build/pom.xml
      [relwithdebinfo] [withMaven] pipelineGraphPublisher - Record generated artifact: my_artifact:1.8, version: 1.8, executedLifecyclePhases: [clean, validate, generate-sources, process-sources, process-resources, compile, process-test-sources, process-test-resources, test-compile, test], skipDownstreamTriggers: false, lifecycleThreshold:deploy, file: null
      [relwithdebinfo] [withMaven] Run 'Open Task Scanner Publisher'...
      [relwithdebinfo] [withMaven] Jenkins Task Scanner Plugin not found, don't display results of source code scanning for 'TODO' and 'FIXME' in pipeline screen.
      

            cleclerc Cyrille Le Clerc
            ncosta Nuno Costa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: