build-automation

How to setup activity automatically for a view?

て烟熏妆下的殇ゞ 提交于 2019-12-01 08:56:38
In our build , we use to delete our view and create new view before build. It was working without any issue in base clearcase. But in UCM we face issues while check-out and check-in due to activity name has to be assigned every time. Is it a good practice to create new activity whenever i build? [ But number of activities will be soon increased to enormous] Is there any easy way to setup default activity automatically in UCM? Has any body automated this in their build process? If so can you share link or something useful resource.. Use cleartool setact to set your activity. setact/ivity [ –c

Jenkins - conditions between build steps

自作多情 提交于 2019-12-01 06:46:15
I want to build a Maven project using Jenkins. However, the project only must be built if a certain file in the SVN repository has changed (and contains a special key) So my plan is to create a job with two build steps: the first step executes a shell or python script that checks that "condition". the second step is the actual Maven build The second step only must be invoked if the condition check in step 1 returned "true". Is there a possibility to do so? Well, I guess I could return an exit code 1 in the first script if the condition is not met. This will stop the build at once, but the job

How to transform a flow chart into an implementation? [closed]

回眸只為那壹抹淺笑 提交于 2019-12-01 06:41:05
EDIT: INTRODUCTION To reach out towards a broader readership, I have reformulated my original question through an elaborate (and somewhat tedious) real-life example. The original question is shown (far) below. Tom has just been hired (depending on his performance during his first two working days) to Acme Inc. as a junior software engineer. His job is to implement algorithms designed by the senior software developers, in the programming language Acme++. The company follows a strict "no goto " policy by the exclusive order of the CEO. In case Tom can perform exceptionally on his probation time,

Change .xla File with MSBuild

情到浓时终转凉″ 提交于 2019-12-01 06:40:59
I'm trying to create a build script for my current project, which includes an Excel Add-in. The Add-in contains a VBProject with a file modGlobal with a variable version_Number. This number needs to be changed for every build. The exact steps: Open XLA document with Excel. Switch to VBEditor mode. (Alt+F11) Open VBProject, entering a password. Open modGlobal file. Change variable's default value to the current date. Close & save the project. I'm at a loss for how to automate the process. The best I can come up with is an excel macro or Auto-IT script. I could also write a custom MSBuild task,

Determining which gencode (compute_, arch_) values I need for nvcc - within CMake

社会主义新天地 提交于 2019-12-01 05:55:03
I'm using CMake as a build system for my code, which involves CUDA. I was thinking of automating the task of deciding which compute_XX and arch_XX I need to to pass to my nvcc in order to compile for the GPU(s) on my current machine. Is there a way to do this: With the NVIDIA GPU deployment kit? Without the NVIDIA GPU deployment kit? Does CMake's FindCUDA help you in determining the values for these switches? My strategy has been to compile and run a bash script that probes the card and returns the gencode for cmake. Inspiration came from University of Chicago's SLURM . To handle errors or

How to generate a header in source with cmake?

白昼怎懂夜的黑 提交于 2019-12-01 04:58:24
In my project I have a "schema" file and utility that I wrote to generate a header file. I'm using cmake and out of source build to build the application. Currently I have to regenerate the header file by hand then build the application. Then I came up with this CMakeLists.txt statements, but they generate the header in the build directory instead of in the source directory. configure_file( generator.pl generator COPYONLY ) configure_file( schema.txt.in schema.txt COPYONLY ) add_custom_command( OUTPUT generated.h COMMAND ./generator schema.txt generated.h DEPENDS mib_schema.txt.in generator.pl

Change .xla File with MSBuild

≯℡__Kan透↙ 提交于 2019-12-01 04:38:30
问题 I'm trying to create a build script for my current project, which includes an Excel Add-in. The Add-in contains a VBProject with a file modGlobal with a variable version_Number. This number needs to be changed for every build. The exact steps: Open XLA document with Excel. Switch to VBEditor mode. (Alt+F11) Open VBProject, entering a password. Open modGlobal file. Change variable's default value to the current date. Close & save the project. I'm at a loss for how to automate the process. The

Java: How do I build standalone distributions of Maven-based projects?

删除回忆录丶 提交于 2019-12-01 03:50:00
I often encounter distributions of Java applications or libraries which use Maven as their build tool. Some of them, sadly, don't provide standalone (or redistributable) jars. Is it possible to build Maven-based applications in such a way, that the build result contains all dependencies and can be redistributed to work out-of-the box? I tried to build Jackrabbit's OCM module. For some very "intelligent" reasons there is no downloadable standalone version. So I built Jackrabbit with Maven (the source package of Jackrabbit includes OCM), and got the same jar as found in the apache repository .

How to generate a header in source with cmake?

雨燕双飞 提交于 2019-12-01 02:43:58
问题 In my project I have a "schema" file and utility that I wrote to generate a header file. I'm using cmake and out of source build to build the application. Currently I have to regenerate the header file by hand then build the application. Then I came up with this CMakeLists.txt statements, but they generate the header in the build directory instead of in the source directory. configure_file( generator.pl generator COPYONLY ) configure_file( schema.txt.in schema.txt COPYONLY ) add_custom

Run a Visual Studio custom tool at build time

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 02:42:54
I have a script that will convert a text file into a resource file, so that I can have multiple language support by having text files for different languages converted into different resources. Once I run the script to get the resx file, I then have to run a custom build tool (as described here: Link to Code Project ) in order to create the Designer.cs files to use the new files. In keeping with the philosophy that I should be able to build the entire project with a single button click, how can I remove the step where I have to explicitly call the custom build tool in order to make the