Skip to content

Utility: Script for listing task versions and searching for a version #21084

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MantavyaDh
Copy link
Contributor

@MantavyaDh MantavyaDh commented Jun 14, 2025

Description:

This pull request introduces a new PowerShell script, ListTaskVersions.ps1, designed to list and search for versions of Azure Pipelines tasks.

Features:

  • List All Versions: Displays all unique versions of a specified task.
  • Search for Specific Versions: Allows searching for a specific version using Major, Minor, and Patch parameters.
  • Error Handling
  • Validates task name input.
  • Ensures all parameters are provided for searches.
  • Displays appropriate error messages for invalid or missing inputs.

Documentation:

A detailed user guide (ListTasksVersions.md) has been created to accompany the script.
Includes usage instructions, behaviors, examples, and error handling details.

Testing:

Verified the script functionality for listing and searching versions.
Confirmed error handling works as expected for various scenarios.

@MantavyaDh MantavyaDh added the Tool Task category: Tool label Jun 16, 2025
@MantavyaDh MantavyaDh marked this pull request as ready for review June 16, 2025 04:47
@MantavyaDh MantavyaDh requested review from tarunramsinghani and a team June 16, 2025 04:48
@MantavyaDh
Copy link
Contributor Author

/azp run



# Prompt user for action
Write-Host "" # Add spacing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to asking for this info to user in interactive way, can these values be taken as input for the script like

ListTaskVersion.ps1 -TaskName CopyFilesV2 (For all versions)

or

ListTaskVersion.ps1 -TaskName CopyFilesV2 -Version 2.252.0 (for specific version)

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

Successfully merging this pull request may close these issues.

2 participants