{"id":4499,"date":"2021-07-21T16:21:30","date_gmt":"2021-07-21T16:21:30","guid":{"rendered":"https:\/\/codethataint.com\/blog\/?p=4499"},"modified":"2021-08-11T11:03:36","modified_gmt":"2021-08-11T11:03:36","slug":"everything-about-azure-pipelines","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/everything-about-azure-pipelines\/","title":{"rendered":"Everything about azure pipelines"},"content":{"rendered":"<p>Simple Pipeline<\/p>\n<pre>\r\n Build -> Tests(QA) -> Deployment(Prod)\r\n<\/pre>\n<p> Trigger &#8211; One which starts an action. On Commit it should trigger a pipeline<br \/>\n Stage &#8211; Pipeline contains multiple stages. Stages are logical boundaries. Build, Test and Deployment above are all stages<br \/>\n Job &#8211; Stage contains multiple jobs. Build stage contains multiple jobs like asking for VM agent, Copying Target file to drop location<br \/>\n Steps &#8211; Job contains multiple steps. Steps can be a task or script which would be run.<\/p>\n<p> Agents would be used to build artifacts in the pipeline. Agents may be based on windows, Linux or mac images which would be available on the fly when the build stage is started during pipeline execution<\/p>\n<pre class=\"brush: yaml; title: ; notranslate\" title=\"\">\r\ntrigger:\r\n- master\r\n\r\npool:\r\n  vmImage: ubuntu-latest\r\n\r\nstages:\r\n- stage: Build\r\n  jobs:\r\n  - job: build\r\n    steps:\r\n    - script: \r\n        echo Displayed from Script\r\n    - task: Npm@1\r\n      inputs:\r\n        command: 'install'    \r\n<\/pre>\n<p><strong>Stages<\/strong> <\/p>\n<pre class=\"brush: yaml; title: ; notranslate\" title=\"\">\r\nstages:\r\n- stage: string  # name of the stage, A-Z, a-z, 0-9, and underscore\r\n  displayName: string  # friendly name to display in the UI\r\n  dependsOn: string | &#x5B; string ]\r\n  condition: string\r\n  pool: string | pool\r\n  variables: { string: string } | &#x5B; variable | variableReference ] \r\n  jobs: &#x5B; job | templateReference]\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Simple Pipeline Build -> Tests(QA) -> Deployment(Prod) Trigger &#8211; One which starts an action. On Commit it should trigger a pipeline Stage &#8211; Pipeline contains multiple stages. Stages are logical boundaries. Build, Test and Deployment above are all stages Job &#8211; Stage contains multiple jobs. Build stage contains multiple jobs like asking for VM agent,&hellip; <a href=\"https:\/\/codethataint.com\/blog\/everything-about-azure-pipelines\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[337,310],"tags":[],"class_list":["post-4499","post","type-post","status-publish","format-standard","hentry","category-azure","category-devops"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/4499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=4499"}],"version-history":[{"count":2,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/4499\/revisions"}],"predecessor-version":[{"id":4595,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/4499\/revisions\/4595"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=4499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=4499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=4499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}