Skip to content

Ability to accept condition as an input for azure:pipeline:run and output status of the build #31

Open
@vsricodes

Description

@vsricodes

The Problem:

The run:azure:pipeline action currently lacks two key functionalities:

Input for condition: This feature is absent, making it impossible to specify a condition that determines whether the action should run the Azure pipeline. This significantly restricts the ability to build complex workflows with conditional execution based on previous steps.
Output for build status: The action does not provide any information about the success or failure of the Azure pipeline run. This absence hinders further decision-making within the workflow, as subsequent steps cannot be controlled based on the pipeline's outcome.
Consequences:

These limitations restrict the potential for creating complex and flexible workflows with the run:azure:pipeline action. This makes it difficult to implement conditional execution and hinders the development of robust and efficient workflows.

Proposed Solutions:

There are two primary solutions to address this issue:

1. Modifying the run:azure:pipeline action:

This solution requires directly altering the action code to introduce the missing input and output features.
Technical expertise in action development and understanding of the Azure DevOps API are necessary for this approach.

2. Utilizing external scripts or actions:

This alternative involves creating a separate script or action responsible for checking the Azure pipeline run status and returning a success/failure flag.
This flag can then be used as a condition for subsequent steps within the workflow.
While requiring additional development effort, this approach offers greater flexibility and avoids modifying the existing action code.
Benefits of Implementation:

Adding input for condition and output for build status would significantly enhance the capabilities of the run:azure:pipeline action:

Enhanced workflow complexity and flexibility: Users can chain multiple pipelines with dependent execution based on previous steps.
Simplified conditional execution: Leveraging the output of the pipeline run, users can easily implement condition-based execution for subsequent steps.
Increased efficiency and automation: Greater control over workflow execution based on pipeline outcomes enables automation of complex tasks and improves efficiency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions