[JIRA] (JENKINS-59872) Allow Poweshell Stage Steps to run without -noprofile

3 views
Skip to first unread message

sebastianslutzky@gmail.com (JIRA)

unread,
Oct 21, 2019, 11:16:03 AM10/21/19
to jenkinsc...@googlegroups.com
sebastian slutzky created an issue
 
Jenkins / Improvement JENKINS-59872
Allow Poweshell Stage Steps to run without -noprofile
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: durable-task-plugin
Created: 2019-10-21 15:15
Environment: Jenkins ver: 2.176.2
OS: Windows Server 16
Pipeline plugin: 2.4
Priority: Minor Minor
Reporter: sebastian slutzky

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.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages