Red Gate forums :: View topic - Build issues with Jenkin Msbuild and SmartAssembly
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

Build issues with Jenkin Msbuild and SmartAssembly

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
noodles.21



Joined: 12 Oct 2011
Posts: 2

PostPosted: Wed Oct 12, 2011 7:02 am    Post subject: Build issues with Jenkin Msbuild and SmartAssembly Reply with quote

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:

  <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:
  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:
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.
Back to top
View user's profile Send private message Send e-mail
Brian Donahue



Joined: 23 Aug 2004
Posts: 6580

PostPosted: Thu Oct 13, 2011 10:27 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
noodles.21



Joined: 12 Oct 2011
Posts: 2

PostPosted: Fri Oct 21, 2011 9:06 am    Post subject: Reply with quote

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:
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?
Back to top
View user's profile Send private message Send e-mail
Brian Donahue



Joined: 23 Aug 2004
Posts: 6580

PostPosted: Fri Oct 21, 2011 9:24 am    Post subject: Reply with quote

No error log... you may just try recreating the SmartAssembly project in the new version.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group