I broke the runtests target when I refactored the tests to make them run in the pipeline. This probably means that the test project fetches nunit framework with a different filename than it is shipped with the zip file we download. It was probably a bad idea to download the dependency manually. We probably need to purge the installation of nunit in the nant build script and replace it with a nuget restore.
On 9 Jul 2017 8:47 p.m., "Apache Jenkins Server" <[email protected]> wrote: > See <https://builds.apache.org/job/log4net-trunk-tests/112/ > display/redirect?page=changes> > > Changes: > > [dpsenner] tests: removed dependency to install-nunit of runtests > > ------------------------------------------ > [...truncated 2.85 KB...] > > git rev-parse "refs/tags/rel/1.2.9^{commit}" # timeout=10 > > git rev-parse "refs/tags/rc/1.2.11-RC1^{commit}" # timeout=10 > > git rev-parse "refs/tags/rc/1.2.13-RC3^{commit}" # timeout=10 > > git rev-parse "refs/tags/rc/2.0.7-RC1^{commit}" # timeout=10 > > git rev-parse "refs/tags/rc/1.2.13-RC1^{commit}" # timeout=10 > > git rev-parse "refs/tags/rc/1.2.13-RC2^{commit}" # timeout=10 > > git rev-parse "refs/tags/rel/2.0.8^{commit}" # timeout=10 > > git rev-parse "refs/tags/rc/1.2.15-RC1^{commit}" # timeout=10 > > git rev-parse "refs/tags/1.2.13RC1^{commit}" # timeout=10 > > git rev-parse "refs/tags/rel/1.2.11^{commit}" # timeout=10 > > git rev-parse "refs/tags/rc/1.2.12-RC1^{commit}" # timeout=10 > > git rev-parse "refs/tags/rel/1.2.10^{commit}" # timeout=10 > > git rev-parse "refs/tags/rel/2.0.7^{commit}" # timeout=10 > > git rev-parse "refs/tags/rel/2.0.6^{commit}" # timeout=10 > > git rev-parse "refs/tags/rc/1.2.10-RC2^{commit}" # timeout=10 > Checking out Revision 670c50178d3e47cf37d2c6950fda02846a115a2f > (origin/develop) > > git config core.sparsecheckout # timeout=10 > > git checkout -f 670c50178d3e47cf37d2c6950fda02846a115a2f > > git rev-list bfef11f8570652ee27833c55a3ba2f6a9e0c4659 # timeout=10 > Executing command: cmd.exe /C "F:\jenkins\tools\nant\nant-0.92\bin\NAnt.exe > -buildfile:log4net.build compile-net-4.0 && exit %%ERRORLEVEL%%" > [log4net-trunk-tests] $ cmd.exe /C > "F:\jenkins\tools\nant\nant-0.92\bin\NAnt.exe > -buildfile:log4net.build compile-net-4.0 && exit %%ERRORLEVEL%%" > NAnt 0.92 (Build 0.92.4543.0; release; 6/9/2012) > Copyright (C) 2001-2012 Gerry Shaw > http://nant.sourceforge.net > > Buildfile: file:///f:/jenkins/jenkins-slave/workspace/log4net-trunk- > tests/log4net.build > Target framework: Microsoft .NET Framework 4.0 > Target(s) specified: compile-net-4.0 > > > check-current-build-config: > > > set-build-configuration: > > > set-debug-build-configuration: > > > check-current-build-config: > > > set-build-configuration-flags: > > > compile-net-4.0: > > > set-debug-build-configuration: > > > check-current-build-config: > > > set-build-configuration-flags: > > > compile-net-4.0-current-configuration: > > > check-bin-dir: > > > check-doc-dir: > > > check-sdkdoc-dir: > > > check-sdkdoc-debug: > > > check-current-build-config: > > > check-build-debug: > > > check-build-defines: > > > set-net-4.0-runtime-configuration: > > > check-log4net-basedir: > > > check-current-bin-dir: > > > clean-current-bin-dir: > > [echo] Cleaning the bin/net/4.0/debug binaries directory. > [delete] Deleting directory '<https://builds.apache.org/ > job/log4net-trunk-tests/ws/bin\net\4.0\debug'.> > [mkdir] Creating directory '<https://builds.apache.org/ > job/log4net-trunk-tests/ws/bin\net\4.0\debug'.> > [csc] Compiling 226 files to '<https://builds.apache.org/ > job/log4net-trunk-tests/ws/bin\net\4.0\debug\log4net.dll'.> > > set-release-build-configuration: > > > check-current-build-config: > > > set-build-configuration-flags: > > > compile-net-4.0-current-configuration: > > > check-bin-dir: > > > check-doc-dir: > > > check-sdkdoc-dir: > > > check-sdkdoc-debug: > > > check-current-build-config: > > > check-build-debug: > > > check-build-defines: > > > set-net-4.0-runtime-configuration: > > > check-log4net-basedir: > > > check-current-bin-dir: > > > clean-current-bin-dir: > > [echo] Cleaning the bin/net/4.0/release binaries directory. > [delete] Deleting directory '<https://builds.apache.org/ > job/log4net-trunk-tests/ws/bin\net\4.0\release'.> > [mkdir] Creating directory '<https://builds.apache.org/ > job/log4net-trunk-tests/ws/bin\net\4.0\release'.> > [echo] Old key file not found. > [echo] The release build using the old key will be skipped. > [csc] Compiling 226 files to '<https://builds.apache.org/ > job/log4net-trunk-tests/ws/bin\net\4.0\release\log4net.dll'.> > > BUILD SUCCEEDED > > Total time: 2.3 seconds. > > Executing command: cmd.exe /C "F:\jenkins\tools\nant\nant-0.92\bin\NAnt.exe > -buildfile:tests/nant.build && exit %%ERRORLEVEL%%" > [log4net-trunk-tests] $ cmd.exe /C > "F:\jenkins\tools\nant\nant-0.92\bin\NAnt.exe > -buildfile:tests/nant.build && exit %%ERRORLEVEL%%" > NAnt 0.92 (Build 0.92.4543.0; release; 6/9/2012) > Copyright (C) 2001-2012 Gerry Shaw > http://nant.sourceforge.net > > Buildfile: file:///f:/jenkins/jenkins-slave/workspace/log4net-trunk- > tests/tests/nant.build > Target framework: Microsoft .NET Framework 4.0 > Target(s) specified: runtests > > > check-current-build-config: > > > set-build-configuration: > > > set-debug-build-configuration: > > > check-current-build-config: > > > set-build-configuration-flags: > > > runtests: > > [echo] Running tests for net-4.0 > > check-bin-dir: > > > check-doc-dir: > > > check-sdkdoc-dir: > > > check-sdkdoc-debug: > > > check-current-build-config: > > > check-build-debug: > > > check-build-defines: > > > set-net-4.0-runtime-configuration: > > > check-log4net-basedir: > > > check-current-bin-dir: > > > clean-current-bin-dir: > > [echo] Cleaning the bin/net/4.0/debug binaries directory. > [delete] Deleting directory '<https://builds.apache.org/ > job/log4net-trunk-tests/ws/tests\bin\net\4.0\debug'.> > [mkdir] Creating directory '<https://builds.apache.org/ > job/log4net-trunk-tests/ws/tests\bin\net\4.0\debug'.> > > check-log4net-output-dir: > > > check-log4net-assembly: > > [echo] Testing if file exists: ..//bin/net/4.0/debug\log4net.dll > > install-nunit: > > [get] Retrieving 'https://github.com/nunit/ > nunitv2/releases/download/2.6.4/NUnit-2.6.4.zip' to '< > https://builds.apache.org/job/log4net-trunk-tests/ws/tests\.tmp-nunit.zip' > .> > [unzip] Unzipping '<https://builds.apache.org/ > job/log4net-trunk-tests/ws/tests\.tmp-nunit.zip'> to '< > https://builds.apache.org/job/log4net-trunk-tests/ws/tests\.tmp-nunit'.> > [copy] Copying 1 file to '<https://builds.apache.org/ > job/log4net-trunk-tests/ws/tests\lib\net\4.0\debug'.> > [delete] Deleting file <https://builds.apache.org/ > job/log4net-trunk-tests/ws/tests\.tmp-nunit.zip.> > [delete] Deleting directory '<https://builds.apache.org/ > job/log4net-trunk-tests/ws/tests\.tmp-nunit'.> > > compile-net-4.0: > > [copy] Copying 3 files to '<https://builds.apache.org/ > job/log4net-trunk-tests/ws/tests\bin\net\4.0\debug'.> > [copy] Copying 1 file to '<https://builds.apache.org/ > job/log4net-trunk-tests/ws/tests\bin\net\4.0\debug'.> > [csc] Compiling 46 files to '<https://builds.apache.org/ > job/log4net-trunk-tests/ws/tests\bin\net\4.0\debug\log4net.Tests.dll'.> > [csc] <https://builds.apache.org/job/log4net-trunk-tests/ws/ > tests\lib\net\4.0\debug\nunit.framework.dll>: error CS1703: An assembly > with the same identity 'nunit.framework, Version=2.6.4.14350, > Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' has already been > imported. Try removing one of the duplicate references. > [csc] <https://builds.apache.org/job/log4net-trunk-tests/ws/ > tests\lib\net\4.0\nunit.framework.dll>: (Location of symbol related to > previous error) > > BUILD FAILED > > <https://builds.apache.org/job/log4net-trunk-tests/ws/ > tests\nant.build(627,10)>: > External Program Failed: > C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe > (return code was 1) > > Total time: 5.8 seconds. > > Build step 'Execute NAnt build' marked build as failure >
