Skip to main content

Azure Devops tutorial

 Azure Devops tutorial:

web sit- Projects - Home (azure.com)

AZURE DEVOPS - Organization - Projects


Under project- ---------


Under Pipelines ---> Pipelines( CI ) - 




Under Pipelines --->Releases( CD ) - 
-------------------------------------------------------------------------------------------------------------------------

Azure Pipelines:---

Pipeline structure:-

A pipeline is one or more stages that describe a CI/CD process. Stages are the major divisions in a pipeline. The stages "Build this app," "Run these tests," and "Deploy to preproduction" are good examples.

A stage is one or more jobs, which are units of work assignable to the same machine. You can arrange both stages and jobs into dependency graphs. Examples include "Run this stage before that one" and "This job depends on the output of that job."

A job is a linear series of steps. Steps can be tasks, scripts, or references to external templates.

This hierarchy is reflected in the structure of a YAML file like:

  • Pipeline
    • Stage A
      • Job 1
        • Step 1.1
        • Step 1.2
        • ...
      • Job 2
        • Step 2.1
        • Step 2.2
        • ...
    • Stage B
      • ...

Simple pipelines don't require all of these levels. For example, in a single-job build you can omit the containers for stages and jobs because there are only steps. And because many options shown in this article aren't required and have good defaults, your YAML definitions are unlikely to include all of them.

A pipeline is one or more jobs that describe a CI/CD process. A job is a unit of work assignable to the same machine. You can arrange jobs into dependency graphs like "This job depends on the output of that job."

A job is a linear series of steps. Steps can be tasks, scripts, or references to external templates.

This hierarchy is reflected in the structure of a YAML file like:

  • Pipeline
    • Job 1
      • Step 1.1
      • Step 1.2
      • ...
    • Job 2
      • Step 2.1
      • Step 2.2
      • ...

For single-job pipelines, you can omit the jobs container because there are only steps. And because many options shown in this article aren't required and have good defaults, your YAML definitions are unlikely to include all of them.


1-The yml pipeline code is given below:-

https://github.com/a-d-n-776/devops7760.blogspot.com/blob/main/1.yml


trigger:
- master

pool:
  vmImage: 'ubuntu-latest'

variables:
  - group: sum_variable_group



stages:

- stage: STAGE_0
  displayName: '000'
  jobs:
  - job: Job0A
  
- stage: STAGE_1
  displayName: 'BUILD-STAGE'
  jobs:
  
  - job: Job1A
    steps:
    - task: CmdLine@2
      displayName: 'Run a one-line script'
      inputs:
        script: echo Hello, world!

  - job: Job1B

- stage: STAGE_2
  displayName: 'TEST-STAGE'
  jobs:
  - job: Job2A


- stage: STAGE_3
  displayName: DEPLOYMENT-STAGE
  jobs:
  - job: Job3A




--------------------------------------------------------------------------------------------

2-Basic pipelines 

a.yml

trigger:

  branches:

     include:

      - main

variables:

  - group: sum_variable_group


stages:

- stage: __default

  jobs:

  - job: Job1A

    pool:

      vmImage: 'ubuntu-latest'

    steps:

    - task: CmdLine@2

      displayName: 'Run a one-line script'

      inputs:

        script: echo Hello, world!


  - job: Job1B


  - job: Job1C

  - job: Job1D

b.yml

# trigger:

# - master

  # branches:

     # include:

      # - main


trigger:

- main

variables:

  - group: sum_variable_group


stages:

- stage: __default

  jobs:

  - job: Job1A

    pool:

      vmImage: 'ubuntu-latest'

    steps:

    - task: CmdLine@2

      displayName: 'Run a one-line script'

      inputs:

        script: echo Hello, world!


  - job: Job1B

  - job: Job1C

  - job: Job1D

c.yml

trigger:

- master


pool:

  vmImage: 'ubuntu-latest'


variables:

  - group: sum_variable_group




stages:

- stage: STAGE_1

  displayName: 'STAGE_1'

  jobs:

  

  - job: Job1A

    steps:

    - task: CmdLine@2

      displayName: 'Run a one-line script'

      inputs:

        script: echo Hello, world!


  - job: Job1B

  - job: Job1C

  - job: Job1D

  - job: Job1E

d.yml

trigger:

- master


pool:

  vmImage: 'ubuntu-latest'


variables:

  - group: sum_variable_group




stages:

- stage: STAGE_1

  displayName: 'STAGE_1'

  jobs:

  

  - job: Job1A

    steps:

    - task: CmdLine@2

      displayName: 'Run a one-line script'

      inputs:

        script: echo Hello, world!


  - job: Job1B

  - job: Job1C

  - job: Job1D

  - job: Job1E


- stage: STAGE_2

  displayName: 'STAGE_2'

  jobs:

  - job: Job2A

  - job: Job2B

  - job: Job2C

  - job: Job2D


- stage: STAGE_3

  displayName: 'STAGE_3'

  jobs:

  - job: Job1A

  - job: Job3B

  - job: Job3C

  - job: Job3D

e.yml

trigger:

- master


pool:

  vmImage: 'ubuntu-latest'


variables:

  - group: sum_variable_group




stages:

- stage: STAGE_1

  displayName: 'STAGE_1'

  jobs:

  

  - job: Job1A

    steps:

    - task: CmdLine@2

      displayName: 'Run a one-line script'

      inputs:

        script: echo Hello, world!


  - job: Job1B

  - job: Job1C

  - job: Job1D

  - job: Job1E


- stage: STAGE_2

  displayName: 'STAGE_2'

  jobs:

  - job: Job2A

  - job: Job2B

  - job: Job2C

  - job: Job2D


- stage: STAGE_3

  displayName: STAGE-3

  jobs:

  - job: Job3A

  - job: Job3B

  - job: Job3C

  - job: Job3D


- stage: STAGE_4

  displayName: 'STAGE_4'

  jobs:

  - job: Job4A

  - job: Job4B

  - job: Job4C

  - job: Job4D


- stage: STAGE_5

  displayName: STAGE_5

  jobs:

  - job: Job5A

  - job: Job5B

  - job: Job5C

  - job: Job5D 

----------------------------------------------------------------------------------------

2.


Comments

Popular posts from this blog

35.AWS.DOCKERandECS

35.AWS.DOCKERandECS -------------------- ..... docker is comany name, .Monilithic And Microservice (Containers). a.install vm ubuntu16.04 LTS...(Long Tarm Support..) b.login ssh ubuntu@DNSpublicip, google - docks.docker....Docker CE-Linux-ubuntu- https://docs.docker.com/  https://docs.docker.com/install/linux/docker-ce/ubuntu/      ...vist web sit best...get all cmds sudo su - 1.Update the apt package index: apt-get update 2.Install packages to allow apt to use a repository over HTTPS: apt-get install \     apt-transport-https \     ca-certificates \     curl \     software-properties-common 3.Add Docker’s official GPG key:  curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 4. apt-key fingerprint 0EBFCD88 5.version inf lsb_release -a 6. sudo add-apt-repository \    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \    $(lsb_...

42-AWS-PROJECT-CERTIFATION

42-AWS-PROJECT-CERTIFATION ... GOOGLE....aws 6r..... 1. 2. 3. 4. 5. 6. PRE SALE -POST SALE::: DPR: Detailed PROJECT REPORT. RFI : REQUSTE FOR INF. RFP : REQUEST FOR PROPEROSAL RFQ : REQ     FOR QOOTE POC: PROOF OF CONCEPT HLD: HIGH LEVEL DEGINE  CEO,LEVEL,  HIG LEVEL DIAGROM LLD: LOW LEVEL DEGINE  .. AWS , VPC, ...... BUILD SHETT: FULL DETIALS OF IP NO.. ALL PIN TO PIN UAT: USER ACCEPTANCEY TEST ORT: OPERATION REDINESS TEST SING OFF : REMAINING AMOUT COLLECT CLOSE ARCHITECTURE: AWS CERTIFICATION: Jayandra Patil AWS .............. AWS sysops bluprint