build-automation

How to use a set of jar files in classpath in Jenkins

社会主义新天地 提交于 2019-12-04 22:02:50
How to make this possible ? I had a set of jar files which are to be included to CLASSPATH variable. I don't want to give the command SET CLASSPATH=xxx.jar;xx.jar;.. as part of the build step. I dont' want to manually set the Environment variable CLASSPATH as part of system properties. I tried by copying a set of jar files into Jenkins_HOME/war/WEB-INF/lib and had started the Jenkins server. But couldn't make it possible... Any Solution ? You can try by additional class-path elements maven. you can see the details in below link https://maven.apache.org/surefire/maven-surefire-plugin/examples

How to deliver properties files in addition to artifacts?

情到浓时终转凉″ 提交于 2019-12-04 21:18:06
问题 I am using Maven2 to build a WAR project. Some properties files are dependent on the environment targeted for a release. I want to deliver, in addition of the WAR, a file called datasource.xml . This file already exists in my project directory, but contains properties that will be filtered during the build (i.e. some ${foo.bar} ). In others words, after running the command mvn clean install , I want to see in my target/ directory two files, my-webapp.war and datasource.xml . Note that

MSbuild for updating the assemblyinfo file

天涯浪子 提交于 2019-12-04 17:40:24
问题 I am writing a batch file to automate a series of tasks. One of these tasks is to update the version of the dlls in my solution, by editing the assemblyinfo.cs file in the various projects in my solution; and then finally calling msbuild.exe to compile the solution. In this regard, is it possible to write a command line script to update the various assemblyinfo.cs files in my .net solution. I would prefer to call msbuild from the commandline itself and not create another msbuild scripted file

Automatically Copy Built Files and Libraries with java, eclipse, and ant

只愿长相守 提交于 2019-12-04 16:04:12
I'm using java with eclipse on windows 7, and I'm trying to build a server program that will run on another (ubuntu) machine on my network. How can I get eclipse to save the built class files into an external location (I have a drive mapped, or it could even be over ssh/sftp/whatever)? I have created a git repository on that machine, so the class files are saved in there, however the external libraries that I'm using (which are on the build path) are not being saved as part of the repository. Ideally I would like to have eclipse copy the built classes and libraries used into another directory

Build all binaries for different Android app stores in a single step

早过忘川 提交于 2019-12-04 16:03:35
问题 I currently distribute my Android apps on Android Market, SlideMe and Amazon app store. Android Market and SlideMe require a signed binary, while Amazon requires an unsigned one. I also need to differentiate some of the code to be compiled depending on which store I'm targeting. Currently I only need to display different text/link information, but in the future there may be a need to change things like included libraries. I am using Eclipse on Windows to build my projects. I am looking for

Using maven2 to build autotools-based C/C++ package

孤人 提交于 2019-12-04 14:42:45
I am working on a collection MATLAB, Java, and C/C++ components that all inter-operate, but have distinctly different compilation/installation steps. We currently don't compile anything for MATLAB, use maven2 for our Java build and unit tests, and use autotools for our C/C++ build and unit tests. I would like to move everything to a single build and unit test system, using maven2, but have not been able to find a plugin that will allow the C/C++ codestream to remain autotools-based and simply wrap it in a maven build. Having to rip out autotools support and recreate all the dependencies in

Chain automated builds in the same Docker Hub repository

谁说我不能喝 提交于 2019-12-04 13:28:01
问题 Due to build time restrictions on Docker Hub, I decided to split the Dockerfile of a time-consuming automated build into 3 files. Each one of those "sub-builds" finishes within Docker Hub's time limits. I have now the following setup within the same repository: | branch | dockerfile | tag | | ------ | ------------------ | ------ | | master | /step-1.Dockerfile | step-1 | | master | /step-2.Dockerfile | step-2 | | master | /step-3.Dockerfile | step-3 | The images build on each other in the

C/C++, FORTRAN, underscores, and GNU Autotools

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 11:53:28
I have a question about mixed-language programming (C/C++ and FORTRAN) using gcc and gfortran. I've searched plenty of "mixing fortran with language X" and haven't been able to resolve this. I'm not sure if this is a linking problem or a compiler problem, or both. I've created three files and I'm using GNU Autotools to build the crude application, but should be able to build the app from command line independently. The C File (main.c) will be the driving app, that calls several FORTRAN functions: /* this is a simple program */ #include <stdio.h> /* add the extern function definition */

How to build a VS2010 C++ Project on a BuildServer

冷暖自知 提交于 2019-12-04 11:32:12
问题 I've a .NET Solution with a managed C++ assemlby Targeting .NET 3.5 created with VS2010. The command: %windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe MyProject.sln compiles the solution on my dev machine. On my BuildServer I get this error: Build FAILED. "F:\CruiseControl.NET\Projects\MyProject\MyProject.sln" (default target) (1) -> "F:\CruiseControl.NET\Projects\MyProject\MyProject\MyProject.csproj" (default target) (2) -> "F:\CruiseControl.NET\Projects\MyProject\MyProjectMAPIHelper

Using MSBuild to zip up multiple project directories

陌路散爱 提交于 2019-12-04 11:07:07
As part of my build process in MSBuild 4.0, I end up with the following directory structure: \OutDir \ProjectA \File1.dll \File2.dll \File3.exe \ProjectB \Subfolder1 File4.html \File5.dll \File6.dll \File7.exe \ProjectC \File8.dll \File9.exe I want to be able to create one zip file per subfolder of \OutDir . If I do the following: <ItemGroup> <ZipSource Include="\OutDir\**.*" /> </ItemGroup> <MSBuild.Community.Tasks.Zip Files="@(ZipSource)" ZipFileName="OutDir\%(ZipSource.RecursiveDir)ZippedOutput.zip" WorkingDirectory="OutDir" /> then each subfolder is recursively zipped up, which works fine