Windows2012中Jenkins搭建.NET自動編譯測試與發佈環境

安裝7Zip

下載地址: http://www.7-zip.org/a/7z1602-x64.exegit

安裝Git

下載地址: https://github.com/git-for-windows/git/releases/download/v2.8.3.windows.1/Git-2.8.3-64-bit.exegithub

在使用 Jenkins CI 或其餘連續性整合工具在自動化構建的時候,任何須要互動的認證過程(例如彈出Account的登入視窗),都會沒法進行而致使構建過程卡住!web

關閉互動操做windows

git config --global credential.interactive never

安裝VS2015

下載地址: https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs工具

下載nuget命令行工具(mnuget.exe)

下載地址: http://dist.nuget.org/win-x86-commandline/latest/nuget.exe   (下載到D:\jenkins\nuget.exe)gitlab

爲Jenkins安裝MSBuild,Git,GitLab,Gitlab Hook插件

配置MSBuild參數

新建自由風格項目

丟棄舊的構建visual-studio

添加參數化構建過程ui

添加Git源碼管理插件

添加gitlab webhook命令行

添加構建觸發器

添加執行Batch腳本

安裝nuget依賴庫

增長MSBuild構建

 添加執行Batch腳本

相關文章
相關標籤/搜索