Compile time vs Runtime Azure Pipelines

Viewed 2704

I come across the terms "Compile time" and "Run time" pretty much everywhere when i
learn about azure pipelines.
However, i still didn't find a clear explanation about them.

I have found this page in Microsoft's documentation, but it doesn't explain these terms very clearly.

I would be happy if someone could explain these terms in the context of the whole
run sequence of Azure Pipelines.

Thanks!

1 Answers

When using YAML Azure Devops pipelines you have your pipelines as code definition. Compile time happens before runtime and you can pass parameters to your YAML before it is compiled (parsed in reality). It will evaluate expressions and replace them in your YAML before even starting any tasks. On runtime, the "compiled" yaml will try for example try to read variables from your Azure Devops pipeline.

Here is an example from Microsoft DOSC:

https://docs.microsoft.com/en-us/azure/devops/pipelines/process/expressions?view=azure-devops

Expressions are probably the most affected thing when it comes to differences between compile time and run time.

Also a pretty nice article about this:

https://adamtheautomator.com/azure-devops-variables-complete-guide/

Related