Building Applications Flashcards
What is Azure Pipelines
Microsoft Azure Pipelines is a cloud service that you can use to automatically build, test, and deploy your code project. You can also make it available to other users. And it works with just about any language or project type.
What is continuous integration
Continuous integration (CI) is the process of automating the build and testing of code every time a team member commits changes to version control.
What are the components of an Azure Pipeline and the function for each one.
- Tasks: Steps/scripts that defines how the build, test, and deployment steps are run.
- Code
- Build agent: a piece of installable software that runs one build or deployment job at a time
- Artifacts: Think of an artifact as the smallest compiled unit that we need to test or deploy the app
What are the differences between implementing hosted and private agents
With Microsoft-hosted agents, maintenance and upgrades are taken care of for you. Each time you run a pipeline, you get a fresh virtual machine. The virtual machine is discarded after one use.
An agent that you set up and manage on your own to run build and deployment jobs is a self-hosted agent. You can use self-hosted agents in Azure Pipelines. Self-hosted agents give you more control and let you install any software you need for your builds and deployments.
What are Agent pools
Instead of managing each agent individually, you can organize agents into agent pools. An agent pool defines the sharing boundary for all agents in that pool. In Azure Pipelines, agent pools are scoped to the Azure DevOps organization so you can share an agent pool across projects.
What are Service endpoints?
Service endpoints are a way for Azure DevOps to connect to external systems or services
What are the two ways to create tasks for a build pipeline
Visual Designer
A YAML file
What is the Pipeline as code
It’s basically defining your build and release pipeline as code in a file. It can be version controlled right alongside your source code.
What Azure pipeline task can you use if there’s no build-in task type that does something you need, ie node-sass
CmdLine@2
What’s the Azure pipeline task for dotnet restore, dotnet build, and dotnet publish?
DotNetCoreCLI@2
$(Build.DefinitionName)
A built-in variable that specifies the name of the build pipeline. For example, “SpaceGame-Web-CI.”
$(Build.BuildId)
A built-in variable that is a numeric identifier for the completed build, like 115.
$(Build.BuildNumber)
A built-in variable is the name of the completed build. You can configure the format, but by default the build number includes the current date followed by the build number for that day. An example build number is “20190329.1.”
What are the main parts of a pipeline yaml file?
- trigger
- pool
- variables
- steps and tasks
Create a pipeline called buildConfiguration that has a value of release and refer to it as well
variables:
buildConfiguration: ‘Release’
$(buildConfiguration)