Different Flavors of Pipelines

I am learning about Azure DevOps and CI/CD.

Azure DevOps

Azure DevOps provides a set of services and tools like GitHub. A lot of features to show you, there are not a lot time! 😢

Azure Pipelines

Azure Pipelines is a Continuous Integration and Continuous Delivery (CI/CD) tool that allows you to build, test, and deploy your code to any platform or cloud seamlessly.

Important Points that Surprise Me

The Agent Pool and Agent Pipeline

An agent pool 💻💻💻 is a collection of one or more agents that can be used to run builds and deployments in Azure DevOps. Agents are the machines that execute the tasks defined in pipelines.

for example:

1
2
3
4
5
6
# more code
steps: 
    job1:
        pool: agent1
    job2: 
        pool: agent2

The Variables Section (Groups) 🔑🔑

With templates, variables can be defined in one YAML file and included in another. Variable groups are sets of variables that you can use across multiple pipelines, promoting reusability and consistency.

1
2
3
4
variables:
- group: my-variable-group
- name: my-standalone-variable
  value: 'my-standalone-variable-value'

Templates vs. Scripts 🗒️🗒️

Both templates and scripts are useful for executing tasks, but templates are generally more reusable and help maintain consistency across your pipelines.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
jobs:
- job: Linux
  pool:
    vmImage: 'ubuntu-latest'
  steps:
  - template: templates/include-npm-steps.yml  # Template reference
- job: Windows
  pool:
    vmImage: 'windows-latest'
  steps:
  - template: templates/include-npm-steps.yml  # Template reference

Conclusion

I will continue learning more about Azure DevOps and CI/CD practices.

Additionally, I completed a small project that you can check out!

comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy