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

Loading shared library resources fails since release 561.va_ce0de3c2d69

    XMLWordPrintable

Details

    • 564.ve62a_4eb_b_e039

    Description

      Hi!

      We upgraded the `workflow-cps-global-lib` plugin from version `552.vd9cc05b8a2e1` to  `561.va_ce0de3c2d69` this morning. Afterwards all build job executions using the global library `maven-pipeline` are failing with the following message:

      ERROR: mavenPipelineConfig.yml references a file that is not contained within the library: maven-pipeline

      The pipeline is of course containing this file, following the structure as described in the offical docs: https://www.jenkins.io/doc/book/pipeline/shared-libraries/#directory-structure

      (root)
      +- vars
      |   +- mavenPipeline.groovy
      +- resources
      |   +- mavenPipelineConfig.yml
      

      and is using it as described in the official docs https://www.jenkins.io/doc/book/pipeline/shared-libraries/#loading-resources

      libraryResource('mavenPipelineConfig.yml')

      This was working before and downgrading to previous version `552.vd9cc05b8a2e1` solves the issue.

      Can you please have a look how to solve this issue in the latest version? Thank you very much!

      The error message itself is btw. contained in this change: https://github.com/jenkinsci/workflow-cps-global-lib-plugin/commit/ace0de3c2d691662021ea10306eeb407da6b6365#diff-cf50e9f7355b5eb3912c142f57de55c1b540f2a92491c1904828f2a3322087f5R260

      Edit: not sure, if this is related, but after downgrading the plugin and restarting Jenkins, I found that unreadable data for some of the failed builds:

      Attachments

        Issue Links

          Activity

            dnusbaum Devin Nusbaum added a comment -

            Just to check, do the people who ran into this have symlinks as part of the path to JENKINS_HOME or the workspace directory? Or is there some other configuration that was also causing this issue?

            dnusbaum Devin Nusbaum added a comment - Just to check, do the people who ran into this have symlinks as part of the path to JENKINS_HOME or the workspace directory? Or is there some other configuration that was also causing this issue?

            dnusbaum I am indeed using symlinks.

            tdubouch Thomas Duboucher added a comment - dnusbaum  I am indeed using symlinks.

            I can confirm that release 564.ve62a_4eb_b_e039 fixes the issue. And yes, we are also using symlinks for JENKINS_HOME. Thank you very much for super fast support!

            alexbde Alexander Bellhäuser added a comment - I can confirm that release 564.ve62a_4eb_b_e039 fixes the issue. And yes, we are also using symlinks for JENKINS_HOME. Thank you very much for super fast support!

            Confirmed too. Thanks for the fast release of the fix!

            tdubouch Thomas Duboucher added a comment - Confirmed too. Thanks for the fast release of the fix!

            symlinks as part of JENKINS_HOME fixed Thanks

            andreasmandel Andreas Mandel added a comment - symlinks as part of JENKINS_HOME fixed Thanks

            People

              dnusbaum Devin Nusbaum
              alexbde Alexander Bellhäuser
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: