Posted: Fri Mar 27, 2015 8:58 am Post subject: WMB Headless Build with projects in sub folders
Newbie
Joined: 26 Mar 2015 Posts: 1
Hello All,
I have been trying to setup an automated build for WMB using Jenkins and Ant with GitHub as a source repository. I am coming to this with a mature code base that has a few quirks, specifically the Git repository has related WMB projects stored in sub-folders. e.g.
This is something that I have inherited an due to the size of the code base may not be something that can change easily.
The problem that I have is that the mqsicreatebar command can not find any of the projects because the project folders are not in the root of the workspace. The toolkit gets round this by importing the projects but the build server that I have been given is Linux and does not have a GUI installed. As a result I can not start the toolkit to create the workspace and import the projects.
I have been able to write an Ant script within a test workspace that can import projects using the built in eclipse ant tasks. However I can only get this to work by setting the ant build to run with the Toolkit JRE. I have found no way to make this work externally i.e. called from Jenkins. Once the projects are imported the mqsicreatebar script works without issue.
I realise that moving projects around in my repository is a way to sort this out but I was hoping I could minimise the amount of change required.
Hopefully someone out there has had some experience with getting internal eclipse ant tasks to work externally. Any help would be appreciated.
Joined: 09 Aug 2001 Posts: 257 Location: Malmö, Sweden
When we build with jenkins the build job copies all required wmb-projects into a single directory where the build command runs. Then running the mqsicreatebar in that directory, hence the "-data ." in the example below.
(We use Groovyscript with AntBuilder exec tasks on Windows)
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