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

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • macOS 10.13.4
      jdk1.8.0_144
      core 2.116
      workflow-multibranch 2.18

      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.

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

              Created:
              Updated:
              Resolved: