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

"update plugin to a version created with a newer harness" warnings in the default STDOUT

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • jenkinsfile-runner
    • None

      Example:

      docker run --rm -v /Users/nenashev/Documents/jenkins/tools/jenkinsfile-runner/demo/cwp/Jenkinsfile:/workspace/Jenkinsfile \
      	    jenkins-experimental/jenkinsfile-runner-demo
         2.731 [id=27]	WARNING	hudson.ClassicPluginStrategy#createClassJarFromWebInfClasses: Created /usr/share/jenkins/ref/plugins/authentication-tokens/WEB-INF/lib/classes.jar; update plugin to a version created with a newer harness
         2.792 [id=27]	WARNING	hudson.ClassicPluginStrategy#createClassJarFromWebInfClasses: Created /usr/share/jenkins/ref/plugins/icon-shim/WEB-INF/lib/classes.jar; update plugin to a version created with a newer harness
         2.957 [id=24]	WARNING	hudson.ClassicPluginStrategy#createClassJarFromWebInfClasses: Created /usr/share/jenkins/ref/plugins/git-server/WEB-INF/lib/classes.jar; update plugin to a version created with a newer harness
      Started
      Running in Durability level: PERFORMANCE_OPTIMIZED
      [Pipeline] stage
      

      These warnings are OK for the build-time, but they should not be displayed in the production runs IMO

      • This is a jenkins issue, but in Jenkins, the errors are going to system log, not build logs
      • For jenkinsfile runner users this is going to build logs

      Options:

      1. Suppress this particular log messages. The good thing here is that it will fix it for all the plugins. Jenkins-x serverless uses plugins not in the stacktrace so this approach will solve those as well
      2. Update the plugins parent poms so that this error doesn't show up and update demo and vanilla package

            egutierrez Evaristo Gutierrez
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: