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

properties step fails cryptically if previous build failed due to shard library loading error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Duplicate
    • None
    • macOS 10.13.4
      jdk1.8.0_144
      core 2.116
      workflow-multibranch 2.18

    Description

      For the sake of simplifying the reproduction steps, the simple Pipeline is used.

      1. Create an empty git repo
      2. Configure it as a implicitly loaded global shared library
      3. Create a Pipeline:

       
      properties([disableConcurrentBuilds()])

      node {
        echo 'Hello World'
      }

      1. Run the Pipeline and see it fail due to 
        ERROR: Library library expected to contain at least one of src or vars directories
      2. Add a sayHello step to the shared library https://jenkins.io/doc/book/pipeline/shared-libraries/#defining-custom-steps
      3. Run the Pipeline again

      Actual: Build fails with:

      java.io.IOException: hello-world #1 did not yet start

      Full stack trace is attached.

      Expected: Either success or a more readable error.

      Attachments

        Issue Links

          Activity

            There are no comments yet on this issue.

            People

              Unassigned Unassigned
              duemir Denys Digtiar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: