Skip to content
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

Azure Powershell v4 update ignores 'Latest installed version' setting #10396

Closed
stephens336 opened this issue May 16, 2019 · 1 comment
Closed

Comments

@stephens336
Copy link

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: Bug

Enter Task Name: Azure PowerShell

list here (V# not needed): 4
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

Environment

Azure DevOps Services

  • Agent - Hosted or Private: Hosted

    • If using Hosted agent, provide agent queue name: Hosted VS2017

Issue Description

An update to v4 version of the task made 18 days ago added validation for the Azure Powershell Version that ignores the 'Latest installed version' setting.

Relevant commit: d631201

If Latest installed version is selected and I try to save the build definition, I get this error:
The pipeline is not valid. Job Job_1: Step input 'CustomTargetAzurePs' with value '' does not satisfy 'isMatch(value, '^[0-9]+\.[0-9]+\.[0-9]+$','Multiline')': Enter valid Azure PowerShell Version

If I change it to specify the version, then entering 1.0.0 works.

Task logs

There is no task log. The error occurs when saving a build definition.

Troubleshooting

Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting

Error logs

The pipeline is not valid. Job Job_1: Step input 'CustomTargetAzurePs' with value '' does not satisfy 'isMatch(value, '^[0-9]+\.[0-9]+\.[0-9]+$','Multiline')': Enter valid Azure PowerShell Version

@20shivangi
Copy link
Contributor

It is resolved in this PR : #10432

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants