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

Announcements

News and Announcements icon
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 765 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
    102 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard