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

Pipeline step "stash" hangs after plugin upgrade

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None

      Hello,

      After upgrading all plugins to latest version we saw that the stash step suddenly hangs. I am able to recreate it with this simple pipeline:

      node('master') {
          stage('stash') {
              bat "echo hello > test.txt"
              stash includes: 'test.txt', name: 'st'
          }
      }

      The job simply hangs, no output and I cannot find anything in the logs.

      This is what is shown in Console Output:

      Started by user admin
      [Pipeline] node
      Running on Jenkins in C:\Users\peter.walls\jenkins\workspace\teststash
      [Pipeline] {
      [Pipeline] stage
      [Pipeline] { (stash)
      [Pipeline] bat
      [teststash] Running batch script

      C:\Users\peter.walls\jenkins\workspace\teststash>echo hello  1>test.txt
      [Pipeline] stash

       

          [JENKINS-47624] Pipeline step "stash" hangs after plugin upgrade

          Sorry for my naivite here, but this issue was resolved as a duplicate of JENKINS-40912... however this is a bug report where the `stash` build step hangs during the build where as the other is a feature request to have the `stash` build step show verbose output on what it's doing. The two don't seem obviously related. Have I missed something?

          Kevin Phillips added a comment - Sorry for my naivite here, but this issue was resolved as a duplicate of JENKINS-40912 ... however this is a bug report where the `stash` build step hangs during the build where as the other is a feature request to have the `stash` build step show verbose output on what it's doing. The two don't seem obviously related. Have I missed something?

          Oh, and btw, I've reproduced this hanging build problem on the latest Jenkins core version (v2.108) so whatever the issue it looks to still be a problem.

          Kevin Phillips added a comment - Oh, and btw, I've reproduced this hanging build problem on the latest Jenkins core version (v2.108) so whatever the issue it looks to still be a problem.

          hmmm - actually in my case this was a red herring. Apparently the include pattern for the `stash` build step is `includes` (plural) not `include` (singular). So rather than throwing an error, Groovy ignored this small typo and assumed that I wasn't providing any pattern for the files to be stashed and it was packaging the entire workspace folder ... which took forever, which is why it looked like it was frozen.

          Perhaps the expectation here was that this defect wasn't actually a defect and the other reporter did something similar... and if the stash plugin had some sort of verbose output showing live what it was doing then perhaps the issue could have be solved quicker... not sure. Either way it's still not obvious how the linked task is a duplicate of this one.

          Kevin Phillips added a comment - hmmm - actually in my case this was a red herring. Apparently the include pattern for the `stash` build step is `includes` (plural) not `include` (singular). So rather than throwing an error, Groovy ignored this small typo and assumed that I wasn't providing any pattern for the files to be stashed and it was packaging the entire workspace folder ... which took forever, which is why it looked like it was frozen. Perhaps the expectation here was that this defect wasn't actually a defect and the other reporter did something similar... and if the stash plugin had some sort of verbose output showing live what it was doing then perhaps the issue could have be solved quicker... not sure. Either way it's still not obvious how the linked task is a duplicate of this one.

            Unassigned Unassigned
            peterwalls974 Peter Walls
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: