Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Execute exe in a schedule from Azure Devops

Is there a way to execute an exe on a scheduled basis (once/twice every day of the week) in azure devops. Not able to find the right task to achieve this.

like image 368
ACP Avatar asked May 27 '26 08:05

ACP


1 Answers

Is there a way to execute an exe on a scheduled basis (once/twice everyday of the week) in azure devops

The answer is yes.

We could add a Command Line task in a build or release pipeline to run a program from the command prompt, specify the .exe of the console application from your repos location, for example: "$(Build.SourcesDirectory)\Tools\ConsoleApp.exe":

enter image description here

Then, we move to the Trigger tab, there is an option Scheduled, which we could set the scheduled basis:

enter image description here

If you want to schedule the task/build twice every day of the week, you could add one more schedule.

Update:

How to add app configs specific to each envs here in this step? Any idea?

You could achieve it by the release pipeline with multi-stage:

Define your multi-stage continuous deployment (CD) pipeline

Each stage for each envs.

Additionally this requires a build every time correct? Is there a way to eliminate that?

Yes, this requires a build every time, otherwise, there will be no trigger to run the .exe.

Hope this helps.

like image 166
Leo Liu-MSFT Avatar answered May 30 '26 04:05

Leo Liu-MSFT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!