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:
  - groupsum_variable_group



stages:

stageSTAGE_0
  displayName'000'
  jobs:
  - jobJob0A
  
stageSTAGE_1
  displayName'BUILD-STAGE'
  jobs:
  
  - jobJob1A
    steps:
    - taskCmdLine@2
      displayName'Run a one-line script'
      inputs:
        scriptecho Hello, world!

  - jobJob1B

stageSTAGE_2
  displayName'TEST-STAGE'
  jobs:
  - jobJob2A


stageSTAGE_3
  displayNameDEPLOYMENT-STAGE
  jobs:
  - jobJob3A




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

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

43-Dev-git cmds

43-Dev-git cmds Harsha Veerapalli... .git clone https://github.com/username/repository  git clone https://github.com/NAVEENMJ/1 git status .git init .git status ... getting red cloure  ( a.txt ) .git add file.txt or  (git add .) .git push .git push -u origin master .................. .git branch ---list of branches .git checkout -b branch ...Creaing branches .git merge branch ... presnt in master then merge.. ................................... .git status .git init .git status ... getting red cloure  ( a.txt ) .git add file.txt .git status .... getting green cloure  ( new file: a.txt) [if multipull files in folder use git add .] .git commit -m "COMMIT-1" .. Hear COMMIT-1 Means giving name in genralli changed  name given .git log ......changes ...times.. modifi that file a.txt...... .git status .git add . .git status .git commit -m "COMMIT-2" .cls .git log ..........i want go before comited version....

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

23.AWS-RedShift

23.AWS-RedShift: Database:: RDS----------DB -OLTP(online transcation.process)-Application writting  to DB (RegularDB Transction) DynamoDB ElastiCache Neptune Amazon Redshift-----DB - OLAP(Online analytic Process)..like filpKart,amzone.. ......................... Amazon Redshift::: goole- aws redshift usee case philips, google- transfering Mysql to redshift, .Clusters-( Subnet groups create ) - Lanch cluster-cluteridentifer,name,username,pass,-Continue-selct nodetype-Continou-(one machine is started we cant terminated but stoped)  -selcet VPC -subnetgroup(in dash board intially created)- Public accessible yes but real time no-securitygroup- continue-launch cluster-view all cluster-wait 10 mintus..-  -Getting Endpoint-(17.07)- .google -sql work bench for redshift-java required-oprn SQL workbench-Manage Drivers-(in aws go in that connet client)-hear also i can downlode SQL Work bench, -JDBC Driver()JDBC4.2),downlode-select cluster-,, .-then go WorkBench-fi...