1. 程式人生 > >在CentOS上構建.net自動化編譯環境

在CentOS上構建.net自動化編譯環境

         我們知道在Windows上我們很容易構建於MSBuild的自動化編譯環境,那麼在CentOS也是可以的,主要是需要Mono。
在這兒我們選擇Jenkins+Gitlab+Mono在CentOS 6.5構建的環境。

1. 安裝 Jenkins
    Jenkins,之前叫做Hudson,是基於Java開發的一種持續整合工具,用於監控持續重複的工作,包括:持續的軟體版本釋出/測試專案。 監控外部呼叫執行的工作。
在CentOS中安裝:

sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo

sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key

sudo yum install jenkins

2.  安裝 Mono 3.10 
     Mono是一個致力於開創.NET在Linux上使用的開源工程。它包含了一個C#語言的編譯器,一個CLR的執行時,和一組類庫,並實現了 ADO NET和ASP NET。該專案的目標是建立一系列符合標準ECMA (Ecma-334和Ecma-335)的.Net 工具, 包括C #編譯器和共同語言(CL 即 Common Language)執行平臺(Platform).與微軟的.Net不同, Mono專案不僅可以運行於Windows系統內,還可以運行於Linux, FreeBSD, Unix, Mac OS X和Solaris。

2.1 安裝Mono需要的GDI+相容API的庫Libgdiplus

cd /usr/local/src/

wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2

tar -jxvf libgdiplus-2.10.tar.bz2

cd libgdiplus-2.10

./configure --prefix=/usr

make

make install

2.2 原始碼安裝Mono 3.10

cd /usr/local/src/

wget http://origin-download.mono-project.com/sources/mono/mono-3.10.0.tar.bz2

tar -jxvf mono-3.10.0.tar.bz2

cd mono-3.10.0

./configure --prefix=/usr

make

make install

輸入 mono -V 如有mono版本資訊,則安裝成功.

3. 安裝GitLab
GitLab 是一個用於倉庫管理系統的開源專案。使用Git作為程式碼管理工具,並在此基礎上搭建起來的web服務。
在這兒為了方便, 選用bitnami的整合好VM版GitLab,運行於Ubuntu 14.04

當然您也可以 在CentOS中手工安裝GitLab,還可參考GitLab版本管理
Tips: Jenkins伺服器與GitLab可以分開部署

4.  安裝Jenkins 的外掛

5. 在shell中執行,匯入如下證書:

為避免

  Nuget with mono getting response stream (Write: The authentication or decryption has failed.): SendFailure

配置NuGet自動還原
由於現在.net 的專案與解決方案都是使用NuGet來管理依賴了。同時在VS的專案中我們需要開啟

image


配置

Jenkins專案配置

image

配置GIT Jenkins外掛

image

支援SSH

clip_image001

或使用者名稱:

clip_image002

增加構建指令碼觸發器

clip_image002

例如 下面的URL

clip_image003

因為Linux下是區分大小寫的,最好使用

MONO_IOMAP=case xbuild ConsoleApplication1.sln

增加對應 單元測試 外掛

clip_image005

讓GitLab 觸發 Jenkins 自動編譯

在Gitlab中對應的專案設定 webhook,如以下URL

clip_image007

最後在控制檯看到編譯後的某個專案的輸出

Started by user peterliu

Building in workspace /var/lib/jenkins/jobs/myTestApp/workspace

> git rev-parse --is-inside-work-tree # timeout=10

Fetching changes from the remote Git repository

> git --version # timeout=10

> git rev-parse refs/remotes/origin/master^{commit} # timeout=10

> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10

Checking out Revision 600a7fba4db9b5ed77950b0b7d33230df1a93871 (refs/remotes/origin/master)

> git config core.sparsecheckout # timeout=10

> git checkout -f 600a7fba4db9b5ed77950b0b7d33230df1a93871

> git rev-list 600a7fba4db9b5ed77950b0b7d33230df1a93871 # timeout=10

[workspace] $ /bin/sh -xe /tmp/hudson1613431576788571686.sh

+ xbuild ConsoleApplication1.sln

XBuild Engine Version 3.2.1.0

Mono, Version 3.2.1.0

Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2011.

Build started 12/6/2014 12:33:31 AM.

__________________________________________________

Project "/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln" (default target(s)):

Target ValidateSolutionConfiguration:

Building solution configuration "Debug|Any CPU".

Target Build:

Project "/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1/ConsoleApplication1.csproj" (default target(s)):

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1/ConsoleApplication1.csproj: warning : Project has unknown ToolsVersion '12.0'. Using the default tools version '2.0' instead.

Target PrepareForBuild:

Configuration: Debug Platform: AnyCPU

Target GetFrameworkPaths:

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : TargetFrameworkVersion 'v4.5' not supported by this toolset (ToolsVersion: 2.0).

Target GenerateSatelliteAssemblies:

No input files were specified for target GenerateSatelliteAssemblies, skipping.

Target CoreCompile:

Skipping target "CoreCompile" because its outputs are up-to-date.

Target _CopyAppConfigFile:

Skipping target "_CopyAppConfigFile" because its outputs are up-to-date.

Done building project "/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1/ConsoleApplication1.csproj".

Project "/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/xUnitTestProject.csproj" (default target(s)):

/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/xUnitTestProject.csproj: warning : Project has unknown ToolsVersion '12.0'. Using the default tools version '2.0' instead.

Target PrepareForBuild:

Configuration: Debug Platform: AnyCPU

Target GetFrameworkPaths:

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : TargetFrameworkVersion 'v4.5' not supported by this toolset (ToolsVersion: 2.0).

Target RestorePackages:

Executing: mono --runtime=v4.0.30319 /var/lib/jenkins/jobs/myTestApp/workspace/.nuget/NuGet.exe install "packages.config" -source "" -RequireConsent -o "/var/lib/jenkins/jobs/myTestApp/workspace/packages"

Restoring NuGet packages...

To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages'.

Target ResolveAssemblyReferences:

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' not resolved

For searchpath /var/lib/jenkins/jobs/myTestApp/workspace/packages/xunit.1.9.2/lib/net20

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/packages/xunit.1.9.2/lib/net20/mscorlib' as a file, but the file does not exist

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/packages/xunit.1.9.2/lib/net20/mscorlib.exe' as a file, but the file does not exist

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/packages/xunit.1.9.2/lib/net20/mscorlib.dll' as a file, but the file does not exist

For searchpath {CandidateAssemblyFiles}

Warning: {CandidateAssemblyFiles} not supported currently

For searchpath {HintPathFromItem}

HintPath attribute not found

For searchpath {TargetFrameworkDirectory}

For searchpath {PkgConfig}

Considered mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, but could not find in any pkg-config files.

For searchpath {GAC}

Considered mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, but could not find in the GAC.

For searchpath {RawFileName}

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' as a file, but the file does not exist

For searchpath bin/Debug/

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/bin/Debug/mscorlib' as a file, but the file does not exist

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/bin/Debug/mscorlib.exe' as a file, but the file does not exist

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/bin/Debug/mscorlib.dll' as a file, but the file does not exist

Target GenerateSatelliteAssemblies:

No input files were specified for target GenerateSatelliteAssemblies, skipping.

Target CoreCompile:

Skipping target "CoreCompile" because its outputs are up-to-date.

Done building project "/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/xUnitTestProject.csproj".

Project "/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/MbUnitTest.csproj" (default target(s)):

/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/MbUnitTest.csproj: warning : Project has unknown ToolsVersion '12.0'. Using the default tools version '2.0' instead.

Target PrepareForBuild:

Configuration: Debug Platform: AnyCPU

Target GetFrameworkPaths:

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : TargetFrameworkVersion 'v4.5' not supported by this toolset (ToolsVersion: 2.0).

Target RestorePackages:

Executing: mono --runtime=v4.0.30319 /var/lib/jenkins/jobs/myTestApp/workspace/.nuget/NuGet.exe install "packages.config" -source "" -RequireConsent -o "/var/lib/jenkins/jobs/myTestApp/workspace/packages"

Restoring NuGet packages...

To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages'.

Target ResolveAssemblyReferences:

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' not resolved

For searchpath /var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40/mscorlib' as a file, but the file does not exist

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40/mscorlib.exe' as a file, but the file does not exist

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40/mscorlib.dll' as a file, but the file does not exist

For searchpath {CandidateAssemblyFiles}

Warning: {CandidateAssemblyFiles} not supported currently

For searchpath /Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages

Considered '/Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages/mscorlib' as a file, but the file does not exist

Considered '/Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages/mscorlib.exe' as a file, but the file does not exist

Considered '/Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages/mscorlib.dll' as a file, but the file does not exist

For searchpath {HintPathFromItem}

HintPath attribute not found

For searchpath {TargetFrameworkDirectory}

For searchpath {PkgConfig}

Considered mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, but could not find in any pkg-config files.

For searchpath {GAC}

Considered mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, but could not find in the GAC.

For searchpath {RawFileName}

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' as a file, but the file does not exist

For searchpath bin/Debug/

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/bin/Debug/mscorlib' as a file, but the file does not exist

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/bin/Debug/mscorlib.exe' as a file, but the file does not exist

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/bin/Debug/mscorlib.dll' as a file, but the file does not exist

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' not resolved

For searchpath /var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40

For searchpath {CandidateAssemblyFiles}

Warning: {CandidateAssemblyFiles} not supported currently

For searchpath /Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages

For searchpath {HintPathFromItem}

HintPath attribute not found

For searchpath {TargetFrameworkDirectory}

For searchpath {PkgConfig}

Considered mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, but could not find in any pkg-config files.

For searchpath {GAC}

Considered mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, but could not find in the GAC.

For searchpath {RawFileName}

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' as a file, but the file does not exist

For searchpath bin/Debug/

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference 'Gallio.GenericParsing, Version=1.1.1.13829, Culture=neutral, PublicKeyToken=e3951cb1f39764e6' not resolved

For searchpath /var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40/Gallio.GenericParsing' as a file, but the file does not exist

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40/Gallio.GenericParsing.exe' as a file, but the file does not exist

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40/Gallio.GenericParsing.dll' as a file, but the file does not exist

For searchpath {CandidateAssemblyFiles}

Warning: {CandidateAssemblyFiles} not supported currently

For searchpath /Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages

Considered '/Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages/Gallio.GenericParsing' as a file, but the file does not exist

Considered '/Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages/Gallio.GenericParsing.exe' as a file, but the file does not exist

Considered '/Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages/Gallio.GenericParsing.dll' as a file, but the file does not exist

For searchpath {HintPathFromItem}

HintPath attribute not found

For searchpath {TargetFrameworkDirectory}

For searchpath {PkgConfig}

Considered Gallio.GenericParsing, Version=1.1.1.13829, Culture=neutral, PublicKeyToken=e3951cb1f39764e6, but could not find in any pkg-config files.

For searchpath {GAC}

Considered Gallio.GenericParsing, Version=1.1.1.13829, Culture=neutral, PublicKeyToken=e3951cb1f39764e6, but could not find in the GAC.

For searchpath {RawFileName}

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/Gallio.GenericParsing, Version=1.1.1.13829, Culture=neutral, PublicKeyToken=e3951cb1f39764e6' as a file, but the file does not exist

For searchpath bin/Debug/

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/bin/Debug/Gallio.GenericParsing' as a file, but the file does not exist

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/bin/Debug/Gallio.GenericParsing.exe' as a file, but the file does not exist

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/bin/Debug/Gallio.GenericParsing.dll' as a file, but the file does not exist

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' not resolved

For searchpath /var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40

For searchpath {CandidateAssemblyFiles}

Warning: {CandidateAssemblyFiles} not supported currently

For searchpath /Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages

For searchpath {HintPathFromItem}

HintPath attribute not found

For searchpath {TargetFrameworkDirectory}

For searchpath {PkgConfig}

Considered mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, but could not find in any pkg-config files.

For searchpath {GAC}

Considered mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, but could not find in the GAC.

For searchpath {RawFileName}

For searchpath bin/Debug/

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' not resolved

For searchpath /var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40

For searchpath {CandidateAssemblyFiles}

Warning: {CandidateAssemblyFiles} not supported currently

For searchpath /Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages

For searchpath {HintPathFromItem}

HintPath attribute not found

For searchpath {TargetFrameworkDirectory}

For searchpath {PkgConfig}

Considered mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, but could not find in any pkg-config files.

For searchpath {GAC}

Considered mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, but could not find in the GAC.

For searchpath {RawFileName}

For searchpath bin/Debug/

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference 'NHamcrest, Version=1.2.1.0, Culture=neutral, PublicKeyToken=31c3ea0b6fcf8c4a' not resolved

For searchpath /var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40/NHamcrest' as a file, but the file does not exist

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40/NHamcrest.exe' as a file, but the file does not exist

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40/NHamcrest.dll' as a file, but the file does not exist

For searchpath {CandidateAssemblyFiles}

Warning: {CandidateAssemblyFiles} not supported currently

For searchpath /Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages

Considered '/Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages/NHamcrest' as a file, but the file does not exist

Considered '/Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages/NHamcrest.exe' as a file, but the file does not exist

Considered '/Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages/NHamcrest.dll' as a file, but the file does not exist

For searchpath {HintPathFromItem}

HintPath attribute not found

For searchpath {TargetFrameworkDirectory}

For searchpath {PkgConfig}

Considered NHamcrest, Version=1.2.1.0, Culture=neutral, PublicKeyToken=31c3ea0b6fcf8c4a, but could not find in any pkg-config files.

For searchpath {GAC}

Considered NHamcrest, Version=1.2.1.0, Culture=neutral, PublicKeyToken=31c3ea0b6fcf8c4a, but could not find in the GAC.

For searchpath {RawFileName}

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/NHamcrest, Version=1.2.1.0, Culture=neutral, PublicKeyToken=31c3ea0b6fcf8c4a' as a file, but the file does not exist

For searchpath bin/Debug/

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/bin/Debug/NHamcrest' as a file, but the file does not exist

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/bin/Debug/NHamcrest.exe' as a file, but the file does not exist

Considered '/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/bin/Debug/NHamcrest.dll' as a file, but the file does not exist

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' not resolved

For searchpath /var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40

For searchpath {CandidateAssemblyFiles}

Warning: {CandidateAssemblyFiles} not supported currently

For searchpath /Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages

For searchpath {HintPathFromItem}

HintPath attribute not found

For searchpath {TargetFrameworkDirectory}

For searchpath {PkgConfig}

Considered mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, but could not find in any pkg-config files.

For searchpath {GAC}

Considered mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, but could not find in the GAC.

For searchpath {RawFileName}

For searchpath bin/Debug/

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' not resolved

For searchpath /var/lib/jenkins/jobs/myTestApp/workspace/packages/mbunit.3.4.14.0/lib/net40

For searchpath {CandidateAssemblyFiles}

Warning: {CandidateAssemblyFiles} not supported currently

For searchpath /Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages

For searchpath {HintPathFromItem}

HintPath attribute not found

For searchpath {TargetFrameworkDirectory}

For searchpath {PkgConfig}

Considered mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, but could not find in any pkg-config files.

For searchpath {GAC}

Considered mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, but could not find in the GAC.

For searchpath {RawFileName}

For searchpath bin/Debug/

Target GenerateSatelliteAssemblies:

No input files were specified for target GenerateSatelliteAssemblies, skipping.

Target CoreCompile:

Skipping target "CoreCompile" because its outputs are up-to-date.

Done building project "/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/MbUnitTest.csproj".

Done building project "/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln".

Build succeeded.

Warnings:

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln (default targets) ->

(Build target) ->

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1/ConsoleApplication1.csproj (default targets) ->

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1/ConsoleApplication1.csproj: warning : Project has unknown ToolsVersion '12.0'. Using the default tools version '2.0' instead.

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln (default targets) ->

(Build target) ->

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1/ConsoleApplication1.csproj (default targets) ->

/usr/lib/mono/2.0/Microsoft.Common.targets (GetFrameworkPaths target) ->

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : TargetFrameworkVersion 'v4.5' not supported by this toolset (ToolsVersion: 2.0).

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln (default targets) ->

(Build target) ->

/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/xUnitTestProject.csproj (default targets) ->

/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/xUnitTestProject.csproj: warning : Project has unknown ToolsVersion '12.0'. Using the default tools version '2.0' instead.

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln (default targets) ->

(Build target) ->

/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/xUnitTestProject.csproj (default targets) ->

/usr/lib/mono/2.0/Microsoft.Common.targets (GetFrameworkPaths target) ->

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : TargetFrameworkVersion 'v4.5' not supported by this toolset (ToolsVersion: 2.0).

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln (default targets) ->

(Build target) ->

/var/lib/jenkins/jobs/myTestApp/workspace/xUnitTestProject/xUnitTestProject.csproj (default targets) ->

/usr/lib/mono/2.0/Microsoft.Common.targets (ResolveAssemblyReferences target) ->

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' not resolved

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln (default targets) ->

(Build target) ->

/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/MbUnitTest.csproj (default targets) ->

/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/MbUnitTest.csproj: warning : Project has unknown ToolsVersion '12.0'. Using the default tools version '2.0' instead.

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln (default targets) ->

(Build target) ->

/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/MbUnitTest.csproj (default targets) ->

/usr/lib/mono/2.0/Microsoft.Common.targets (GetFrameworkPaths target) ->

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : TargetFrameworkVersion 'v4.5' not supported by this toolset (ToolsVersion: 2.0).

/var/lib/jenkins/jobs/myTestApp/workspace/ConsoleApplication1.sln (default targets) ->

(Build target) ->

/var/lib/jenkins/jobs/myTestApp/workspace/MSUnitTest/MbUnitTest.csproj (default targets) ->

/usr/lib/mono/2.0/Microsoft.Common.targets (ResolveAssemblyReferences target) ->

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' not resolved

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' not resolved

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference 'Gallio.GenericParsing, Version=1.1.1.13829, Culture=neutral, PublicKeyToken=e3951cb1f39764e6' not resolved

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' not resolved

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' not resolved

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference 'NHamcrest, Version=1.2.1.0, Culture=neutral, PublicKeyToken=31c3ea0b6fcf8c4a' not resolved

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' not resolved

/usr/lib/mono/2.0/Microsoft.Common.targets: warning : Reference 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' not resolved

15 Warning(s)

0 Error(s)

Time Elapsed 00:00:01.1224900

[xUnit] [INFO] - Starting to record.

[xUnit] [INFO] - Processing MbUnit-2.4 (default)

[xUnit] [INFO] - There are errors when processing test results.

[xUnit] [INFO] - Skipping tests recording.

Finished: SUCCESS

希望對您構建軟體開發環境有幫助。

如有想了解更多軟體,系統 IT,企業資訊化 資訊,請關注我的微信訂閱號:

MegadotnetMicroMsg_thumb1_thumb1_thu[1]


作者:Petter Liu
出處:http://www.cnblogs.com/wintersun/
本文版權歸作者和部落格園共有,歡迎轉載,但未經作者同意必須保留此段宣告,且在文章頁面明顯位置給出原文連線,否則保留追究法律責任的權利。
該文章也同時釋出在我的獨立部落格中-Petter Liu Blog