Build issues with Jenkin Msbuild and SmartAssembly
noodles.21
Posts: 3
Hello. Newb here, not sure if i'm making a glaring error but i've tried my best to search the forum and the internets.
At the moment Im using the UsingTask method to invoke Smart Assembly in the blah.csproj file, like so
If any pointers can be given to honing down the problem, it would be much appreciated.
At the moment Im using the UsingTask method to invoke Smart Assembly in the blah.csproj file, like so
<UsingTask TaskName="SmartAssembly.MSBuild.Tasks.Build" AssemblyName="SmartAssembly.MSBuild.Tasks, ... .... <SmartAssembly.MSBuild.Tasks.Build ProjectFile="C:\Users\build\Jenkins\blah\blah.{sa}proj" OverwriteAssembly="false"/>When I use msbuild to build this proj file, everything works fine with the following output:
SmartAssembly v6.0.0.513 Copyright © Red Gate Software 2005-2011 Loading project C:\Users\build\Jenkins\blah\blah.{sa}proj OKwhich is as expected. However when I use jenkins to run msbuild on the exact same proj it fails with the following error
AfterCompile: SmartAssembly v6.0.0.513 Copyright ¸ Red Gate Software 2005-2011 Loading project C:\Users\build\Jenkins\blah\blah.{sa}proj c:\Users\build\Jenkins\blah\blah.csproj(630,8): error : SmartAssembly build failed: c:\Users\build\Jenkins\blah\blah.csproj(630,8): error : Some options are not set or are not valid. c:\Users\build\Jenkins\blah\blah.csproj(630,8): error : Please review all the settings and try again. c:\Users\build\Jenkins\blah\blah.csproj(630,8): error : c:\Users\build\Jenkins\blah\blah.csproj(630,8): error : We recommend that you run SmartAssembly in user-interface mode, which provides more information. Done Building Project "c:\Users\build\Jenkins\blah\blah.csproj" (Build target(s)) -- FAILED.I'd like some hints as to how to determine which options are not set, so i can set them with Jenkins, or does this point to something fundamentally broken with Jenkins implementation of msbuild. Additionally, someone before me tried it with cruisecontrol and ended up with the same issue. As such, i didnt think it was a Jenkin's issue, but more of a smartassembly issue.
If any pointers can be given to honing down the problem, it would be much appreciated.
Comments
Hope this helps!
I understand that you are not here to support jenkins but i guess i was hoping for some pointers as to why SmartAssembly 6 would produce this error prompt
and is there anyway way to find out which options are not set, or not valid i.e. is there an error log that would be more insightful?