---
# System prepended metadata

title: Azure DevOps
tags: [Azure DevOps]

---

---

title: Azure DevOps # 簡報的名稱
tags: Azure DevOps   # 簡報的標籤

---

# Azure DevOps

![](https://i.imgur.com/XPoFFDM.png)

---

# Agenda
* ## Azure Boards
* ## Azure Repos
* ## Azure Pipelines
* ## Azure Artifacts

---

##  Azure Boards

![](https://i.imgur.com/4dKwO8a.png)

----

###  Work items

![](https://i.imgur.com/Nq6AcmB.png)

----

###  Sprints

![](https://i.imgur.com/aGnOhiz.png)

---

## Azure Repos

![](https://i.imgur.com/RC4LNla.png)

----

##  Azure Repos

* #### 1. ssh key
* #### 2. git remote add

----

### Azure Repos - Pull Request

![](https://i.imgur.com/dK9YZtX.png)

----

### Azure Repos - Pull Request 目的

* #### 1. 不可以直接推送 master 減少偷渡
* #### 2. CodeReview 降低程式碼Bug
* #### 3. 有人同意才可合併分支

----

### Azure Repos -Pull Request

* #### 1. Cross-repo policies
* #### 2. Create Branch & Pull Request

---

##  Azure Pipelines

![](https://i.imgur.com/IeYfFhN.png)

----

##  Azure Pipelines

* ### 1. Build Code
* ### 2. Run Unit Test
* ### 3. Static Analysis
* ### 4. Build Image
* ### 5. Push Image
* ### 6. Create Octopus Release

----

###  Build Code

* #### 1. Npm install

----

###  Run Unit Test

* #### 1. Run Test
* #### 2. Publish Test Results
* #### 3. Publish CodeCoverage Results Test

----

###  Static Analysis

* #### 1. Generate Sonarcloud Tokens
* #### 2. Organization Extensions
* #### 3. Project Servcie connections
* #### 4. Analyze Code
* #### 5. Publish report to Sonarcloud

----

###  Build & Push Docker Image

* #### 1. Project Servcie connections
* #### 2. Docker Build & Push

----

### Create Octopus Release

* #### 1. Organization Extensions
* #### 2. Project Servcie connections
* #### 3. Create Octopus Release

---

##  Azure Artifacts

![](https://i.imgur.com/dBTdCUr.png)

----

### Azure Artifacts Publish

* #### 1. Add npm install
* #### 1. Set Build Number
* #### 2. Add npm version
* #### 3. Add npm publish

----

### Azure Artifacts 注意事項

* #### 1. 套件名稱不可與外部套件名稱重複
* #### 2. 版號不可以重複
* #### 3. 上傳的套件無法刪除

----

### Azure Artifacts 安裝

* #### 1. Npm install Package
* #### 2. Add .npmsrc
* #### 3. Generate a personal access token

---

## OverView 

![](https://i.imgur.com/8ZS6CTr.png)

---

## Dashboards

![](https://i.imgur.com/24G1i9E.png)

---

## Reference

* #### [AzureDevops](https://ste5022424.github.io/2019/12/13/AzureDevops/)
* #### [AzureDevopsBords](https://ste5022424.github.io/2019/12/13/AzureDevopsBords/)
* #### [AzureDevopsRepos](https://ste5022424.github.io/2019/12/13/AzureDevopsRepos/)
* #### [AzureDevopsArtifacts](https://ste5022424.github.io/2019/12/13/AzureDevopsArtifacts/)
* #### [AzureDevopsPipelines](https://ste5022424.github.io/2019/12/13/AzureDevopsPipelines/)
