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

Declarative environment hangs on overwriting self with existing env.value

XMLWordPrintable

      After upgrading from v1.1.9 to v1.2.2 (and even v1.2.3 as of yesterday), our pipelines started to hang.  This seems to be related to JENKINS-45198.  Showing the pipeline steps was the key to figure this out  as it was stuck in "Set environment variables" (See attachment)

      BlueOcean would say: Queued Waiting for run to start

      Console would say:

      [Pipeline] { (Declarative: Checkout SCM)
      [Pipeline] checkout
       > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
       > git config remote.origin.url ... # timeout=10
      Fetching without tags
      Fetching upstream changes from ...
       > git --version # timeout=10
      using GIT_ASKPASS to set credentials Jenkins Github password
       > git fetch --no-tags --progress ...
      Checking out Revision d6a063e9118ab507621bdf42ce9baa67fc07d5f4 (master)
       > git config core.sparsecheckout # timeout=10
       > git checkout -f d6a063e9118ab507621bdf42ce9baa67fc07d5f4
      Commit message: "v2.0.65 changelog"
       > git rev-list d6a063e9118ab507621bdf42ce9baa67fc07d5f4 # timeout=10
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] withEnv
      [Pipeline] {

      This is with all plugins and jenkins up to date as of today.

      Jenkinsfile attached

      Many thanks for any help/light you can shine on this

            abayer Andrew Bayer
            adrianbridgett Adrian Bridgett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: