web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Release Pipeline Condi...
Power Apps
Unanswered

Release Pipeline Conditions

(0) ShareShare
ReportReport
Posted on by 763 Super User 2024 Season 1

I have several release pipelines.  I would like to add some conditions to the pipeline. I want to grab the version number for the Solution I am deploying, and the version that is already deployed, if the same, end/skip the deployment altogether. I know how to get the version numbers for the solutions, what I don't know is how to do the conditional testing.

Any help would be appreciated.

 

Thank you.

I have the same question (0)
  • ryanspain Profile Picture
    100 on at

    Hey @sperry1625 ,

     

    Assuming you are using Azure DevOps, you can set conditions for when a job or task should run in a pipeline quite easily.

     

    From a task

    This is probably most applicable to you. Click on a task under a job in your pipeline, and from the task details sidebar, navigate to Control options, followed by Run this task.

    ryanspain_0-1658732863864.png

    From here you can change the default from Only when all previous tasks have succeeded to anything you like. I suspect in your case, you will want to set this to Custom conditions. You can read about what's possible in the docs under Specify conditions. You can use variables within conditions to dictate the pipeline flow using these conditions.

     

    From a job

    The same can be achieved at the job level by navigating to Additional options instead the details sidebar, followed by Run this job. From here you can change the default behavior as needed.

     

    Maybe you could wrap your conditional deployment process tasks into a job and add the condition check at the job level?

     

    I hope this helped.

    Ryan

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard