-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script tasks #4578
Script tasks #4578
Conversation
Tasks/powerShell/powershell.ps1
Outdated
} | ||
|
||
# Get inputs. | ||
$input_apartment = Get-VstsInput -Name 'apartment' -Default 'Sta' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe just hard code 'STA'
Tasks/powerShell/powershell.ps1
Outdated
Write-Error (Get-VstsLocString -Key 'PS_InvalidErrorActionPreference' -ArgumentList $input_errorActionPreference) | ||
} | ||
} | ||
$input_executionPolicy = Get-VstsInput -Name 'executionPolicy' -Default 'Unrestricted' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hard code for now?
Tasks/powerShell/powershell.ps1
Outdated
Invoke-VstsTool @splat | ||
} else { | ||
$global:ErrorActionPreference = 'Continue' | ||
Invoke-VstsTool @splat 2>&1 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need ##vso[task.setresult failure];
Tasks/powerShell/powershell.ps1
Outdated
'FileName' = $powershellPath | ||
'Arguments' = $arguments | ||
'WorkingDirectory' = $workingDirectory | ||
'RequireExitCodeZero' = !$ignoreExitCode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
input_ignoreExitCode
Tasks/powerShell/powershell.ps1
Outdated
$splat = @{ | ||
'FileName' = $powershellPath | ||
'Arguments' = $arguments | ||
'WorkingDirectory' = $workingDirectory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
input_workingDirectory
2b7b07d
to
10703df
Compare
note to self, finished testing win impl |
10703df
to
376d0ad
Compare
376d0ad
to
8c16fea
Compare
Heya, This significantly reduces its usefulness when used in task groups that can automatically discover configurable inputs from arguments used in a script. vs File Path: Reported issue at #4971 |
No description provided.