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

Allow Poweshell Stage Steps to run without -noprofile

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: durable-task-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver: 2.176.2
      OS: Windows Server 16
      Pipeline plugin: 2.4
    • Similar Issues:

      Description

      Powershell steps are executed with the -noprofile powershell option.

      This is not always desired. In our case we add setup and configuration tasks to the default profile. A workaround if to add ". $profile" at the beginning of each powershell step but this adds overhead to all steps and is a maintenance burden.

      Additionally, the powershell plugin for jenkins doesn't use -noprofile, so it would be good to preserve that behaviour to make the switch to the jenkins pipeline seemless.

       

      Suggestion:

      Make the hardcoded command line to powershell configurable globally, so that  a "use default profile" global checkbox can drive this behaviour.

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              sebastian_sl sebastian slutzky
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: