• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • durable-task-plugin
    • None

      Jenkinsfile:

      pipeline {
          agent any
          options {
              timeout(time: 1, unit: 'HOURS')
          }
          stages {
              stage('Starting') {
                  steps {
                      echo "Running ${env.JOB_NAME} - ${env.BUILD_ID}"
                  }
              }
              stage('Checkout') {
                  steps {
                      echo 'Checkout..'
                      checkout scm
                  }
              }
              stage('Build') {
                  steps {
                      powershell 'Write-Output "Hello, World!"'
                  }
              }
          }
      }
      

      Here's the console output:

      [Pipeline] // stage
      [Pipeline] stage
      [Pipeline] { (Build)
      [Pipeline] powershell
      [devel] Running PowerShell script
      

      And it just times out after an hour.

      Powershell tasks were working last week. The change may have coincided with a Jenkins update from 2.73.2 to 2.73.3, but I reverting back to 2.73.2 has not resolved the issue.

          [JENKINS-48175] Powershell 'Hello World' Task Hangs

          Dan Black created issue -

          James Withers added a comment -

          Reverting to 1.15 resolves for me.

          James Withers added a comment - Reverting to 1.15 resolves for me.

          Dan Black added a comment -

          jameswithers How did you revert to 1.15? I can only go back one version to 1.16. I would do it manually but I'm not sure where to find the jpi/hpi file for 1.15.

          Thanks

          Dan Black added a comment - jameswithers How did you revert to 1.15? I can only go back one version to 1.16. I would do it manually but I'm not sure where to find the jpi/hpi file for 1.15. Thanks
          James Withers made changes -
          Comment [ [~hurricane766] Check out the plugin's page on plugins.jenkins.io - there's an archive link where you can find previous versions. ]

          James Withers added a comment -

          Check out the plugin's page on plugins.jenkins.io - there's an archive link where you can find previous versions.

          James Withers added a comment - Check out the plugin's page on plugins.jenkins.io - there's an archive link where you can find previous versions.

          Dan Black added a comment -

          Reverting to 1.15 also solved my issue. Thanks jameswithers

          Dan Black added a comment - Reverting to 1.15 also solved my issue. Thanks jameswithers

          Cody Konior added a comment - - edited

          I had the same problem - it really broke my main Jenkins instance with all the pipeline powershell steps hanging. Reverting to 1.15 fixed it.

          Cody Konior added a comment - - edited I had the same problem - it really broke my main Jenkins instance with all the pipeline powershell steps hanging. Reverting to 1.15 fixed it.

          I had this problem. But it only occurred with jobs that had a space in their name. This was on Windows 10 with Powershell 5.1. Reverting to 1.15 fixed it.

          Charles Bozarth added a comment - I had this problem. But it only occurred with jobs that had a space in their name. This was on Windows 10 with Powershell 5.1. Reverting to 1.15 fixed it.

          Scott Selberg added a comment -

          This just stumped me for a day.  Rolling back to 1.15 fixed the issue.  Thanks reporters!

          Scott Selberg added a comment - This just stumped me for a day.  Rolling back to 1.15 fixed the issue.  Thanks reporters!

          Chris Stylianou added a comment - FYI issue is being fixed here: https://issues.jenkins-ci.org/browse/JENKINS-46496?focusedCommentId=321090&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-321090

            Unassigned Unassigned
            hurricane766 Dan Black
            Votes:
            8 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: