DevOps=Developer + Operation
取得需求到維運資訊,快速修正系統
CI & CD 不等於DevOps
省去流程上的一些時間
DevOps如何有效地溝通
有效溝通
協同合作
即時反應與資訊透明
微軟新一代的協同工具
Microsoft Teams
需要有O365帳號
Web, iOS, Andrew, Windows Phone
Slack Group(Host Name)Channel
Office 365Group(自訂)Channel
Microsoft Teams神奇特色及
運用
建立接收訊息的Channel
建立該Channel的Incoming Webhook服務
Http Header加入"Content-Type" : "application/json“
Title & Text
Actions
Sections
"text":"第一個訊息[Link](http://www.google.com)"
{
"title":"我是Title",
"text":"第一個訊息"
}
{
"text":"第一個訊息[Link](http://www.google.com)",
"potentialAction": [
{
"@context": "http://schema.org",
"@type": "ViewAction",
"name": "拜訪Google",
"target": ["https://www.google.com"]
}
]
}
摘要性描述標籤
activityTitle
activitySubtitle
activityText
詳細描述標籤
Fact,採用Key & Value方式
"sections": [
{
"activityTitle": "Office 365 API",
"activitySubtitle": "如何使用",
"activityText": "透過API傳遞資訊"
}
,{
"title": "人員1",
"facts": [
{
"name": "姓名",
"value": "王大明"
}]
},
]
VSTS 建置團隊的
Package
不須額外花時間力氣架設Nuget Server
權限控管
自動化建置與上架
分門別類功用
支援nuget / npm 安裝指令
五人以下使用免費
具有MSDN帳戶不列入計費人頭
Stakeholders角色無法使用
Feed數量不限制
https://marketplace.visualstudio.com/items?itemName=ms.feed
Owners
Contributors
Readers
使用Nuget Package專案
自行建立符合Nuget Schema的.nuspec
加入.nuspec file(s)路徑
Package Versioning設定
<version>1.0.1- beta</version>
http://semver.org/spec/v1.0.0.html
搶鮮版 : $(Year:yyyy).$(Month).$(DayOfMonth)-beta$(Rev:-rr)
正式版: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.rr)
選Internal
自訂的Feed URL
VSTS 雲到地的企業
實務架構
VSTS 雲到地端的企業
實務架構
CMMI
Agile
Scrum
Customized CMMI / Agile / Scrum
Windows agent
Mac agent
Linux agent
PS C:agent> .config.cmd
PS C:agent> .run.cmd
連線異常,VSTS上面的Agent會顯示紅燈
Local端也會有紀錄異常Log
安裝超過一個Agent,需要額外付費
付費需將VSTS與Azure Team Services accounts 綁定
Build iOS App
專案有用到相依性元件
整合測試有與內部系統相關
想省錢
差異性更新Local檔案
Release企業內機房
在Host Agent中
除Build外,盡量都放在Release
直接佈署Table, View, Store procedure
建立DBA審核機制的Release
自動產生Release的SQL Script檔案
Database還是必須先建立在DB Server內
必須是SQL Project或是能封裝成.dacpac
Local Agent Server必須安裝SSDT
Tool : 指向Sqlpackage.exe路徑
Arguments : 執行Sqlpackage.exe參數
"C:Program Files (x86)Microsoft Visual Studio
14.0Common7IDEExtensionsMicrosoftSQLDBDAC130sqlpackage.exe“
/action:Publish /q:true /sourcefile:"D:DataBase_dacpacXXX.dacpac"
/TargetPassword:AAA /TargetServerName:DBServer /TargetUser:CCC
/targetdatabasename:XXX /p:BlockOnPossibleDataLoss=false
/p:ScriptDatabaseCompatibility=false
/p:ExcludeObjectTypes=DatabaseRoles…
/action:Script /q:true /sourcefile:"D:DataBase_dacpacXXX.dacpac"
/TargetPassword:AAA /TargetServerName:DBServer /TargetUser:CCC
/targetdatabasename:XXX /outputpath:"D:DataBase_dacpacrelease.sql"
/p:ScriptDatabaseCompatibility=false /p:BlockOnPossibleDataLoss=false
/p:ExcludeObjectTypes=DatabaseRoles…
IIS站台建置、權限設定…等等
團隊專案多時,已經不知道現在跑甚麼
很多流程執行前,還是要人為介入控管
VSTS + Microsoft Teams
雙劍合併
Version Control
User
Requirement
Management
Auto Build
Unit Test
Integration Test
Font-End Test
Mobile Test
Deploy Cloud & Local
Configuration
Architecture
Application Insight
OMS
http://edwardkuo.imas.tw/
https://www.facebook.com/jaigi.kuo
https://github.com/edwardkuo

[ Study4TW Visual Studio Everywhere ] Vsts + microsoft teams 建構企業的Devops

Editor's Notes

  • #25 1.用實務案例顯示
  • #41 Build Time free =240 分鐘
  • #47 20%還是要手動 先建置,80才自動化