Build issues with Jenkin Msbuild and SmartAssembly

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

Build issues with Jenkin Msbuild and SmartAssembly

Postby noodles.21 » Wed Oct 12, 2011 7:02 am

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
Code: Select all
  <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:
Code: Select all
  SmartAssembly v6.0.0.513
  Copyright © Red Gate Software 2005-2011
  Loading project C:\\Users\\build\\Jenkins\\blah\\blah.{sa}proj
  OK

which is as expected. However when I use jenkins to run msbuild on the exact same proj it fails with the following error
Code: Select all
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.
noodles.21
 
Posts: 2
Joined: Wed Oct 12, 2011 6:34 am

Postby Brian Donahue » Thu Oct 13, 2011 10:27 am

Given the file extension, I'd say that your SA project was created by an older version of SmartAssembly, when the file extension was .{sa}proj. I know absolutely nothing about Jenkins and we're definitely not going to support that, but maybe it doesn't like the file extension. Try changing it to .saproj.

Hope this helps!
Brian Donahue
 
Posts: 6668
Joined: Mon Aug 23, 2004 10:48 am

Postby noodles.21 » Fri Oct 21, 2011 9:06 am

Brian: thanks for the pointer, i tried to rename the file extension, but that wasn't the issue.

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

Code: Select all
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.


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?
noodles.21
 
Posts: 2
Joined: Wed Oct 12, 2011 6:34 am

Postby Brian Donahue » Fri Oct 21, 2011 9:24 am

No error log... you may just try recreating the SmartAssembly project in the new version.
Brian Donahue
 
Posts: 6668
Joined: Mon Aug 23, 2004 10:48 am


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 0 guests