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

Powershell 'Hello World' Task Hangs

XMLWordPrintable

    • 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.

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

              Created:
              Updated: