• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • job-dsl-plugin
    • None
    • Operating System: Windows

      For Windows build slaves it would be good to support PowerShell build steps, these are essentially identical to BatchFile but execute in PowerShell instead of cmd.

      hudson.plugins.powershell.PowerShell plugin="powershell@1.2">
      <command>
      PowerShell script commands here
      </command>
      </hudson.plugins.powershell.PowerShell>

      I have an implementation, a pull request will be following.

          [JENKINS-27820] Support adding Windows PowerShell build steps

          Code changed in jenkins
          User: Mark Syms
          Path:
          docs/Job-reference.md
          job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/step/StepContext.groovy
          job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/helpers/step/StepContextSpec.groovy
          http://jenkins-ci.org/commit/job-dsl-plugin/ef79f2970dd0ea59bce2a820d431e5efa5f57944
          Log:
          Add support for PowerShell build step in response to JENKINS-27820

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mark Syms Path: docs/Job-reference.md job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/step/StepContext.groovy job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/helpers/step/StepContextSpec.groovy http://jenkins-ci.org/commit/job-dsl-plugin/ef79f2970dd0ea59bce2a820d431e5efa5f57944 Log: Add support for PowerShell build step in response to JENKINS-27820

          Will be released in 1.32.

          Daniel Spilker added a comment - Will be released in 1.32.

            daspilker Daniel Spilker
            marksyms Mark Syms
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: