post-build

Post Build exited with code 1

馋奶兔 提交于 2020-02-10 05:05:05
问题 I have a project with a post build event: copy $(ProjectDir)DbVerse\Lunaverse.DbVerse.*.exe $(TargetDir) It works fine every time on my machine. I have a new developer who always gets the "exited with code 1" error. I had her run the same command in a DOS prompt, and it worked fine. What could be causing this? Is there any way to get to the real error? We are both using Visual Studio 2008. 回答1: She had a space in one of the folder names in her path, and no quotes around it. 回答2: The one with

Jenkins svn commit post-build

别等时光非礼了梦想. 提交于 2019-12-22 04:36:13
问题 I'm trying to make a post-build commit in Jenkins CI when it's succeeded. Is there a way to make this? My problem is that when i build it generates some dll's in the workspace that i need to commit to the svn. 回答1: It depends on the build technology (e.g. Ant, Maven, MSBuild or FianlBuilder) you use for building your source code. To check-in your build results into your svn, you should add some new steps at the end of your build scripts. This step will simply add your build results to svn.

“Attach to Process” as a post-build event

一个人想着一个人 提交于 2019-12-21 04:38:13
问题 I have an application that runs hosted under the "w3wp.exe" process. While debugging, I often find myself following these steps: 1 - Make some change 2 - Build the project 3 - Attach to "w3wp.exe" using the "attach to process" dialog under the Tools menu. 4 - Perform some action in the application to make my code execute, so I can step through it in the debugger I'd like to automate step 3 in the post-build script, so that the IDE automatically attaches to the process after the build is

How to run parametrized job after another (without params)

让人想犯罪 __ 提交于 2019-12-21 03:45:06
问题 I have a job in Jenkins which has 2 params. I want to run another plan, which has no params and from that plan, launch the existing plan as many times as required. The new plan needs to be scheduled to run each 15 minutes (will be done by Jenkins' scheduler option), the code of that plan will: connect to a db get required recordset start looping the recordset store the key/value pair (parameters for the existing job) end looping Once this is done, I need to run the existing job with each key

How can I retrieve major/minor/build/revision number on build events

南笙酒味 提交于 2019-12-13 04:58:21
问题 Hy there! I'm using this piece of code, to copy some files on post-build-event: <PropertyGroup> <DemoPath1>..\demoPath1</DemoPath1> </PropertyGroup> <Target Name="AfterBuild"> <Exec Command="robocopy $(ProjectDir)$(DemoPath1) $(ProjectDir)demoPath2/$(Revision) * /XD .svn _svn /XF *.cs /S" IgnoreExitCode="true" /> </Target> As you can see, I would like to use $(Revision) - obviously, this is not going to work ... Can anybody help me out? @mods: I dunno exactly which tag to use ... on the one

Is there information available when executing jenkins postbuild script about job status

此生再无相见时 提交于 2019-12-13 03:33:21
问题 I need to run certain shell command if build fails. Is there any variable passed to shell that contains such info? Or maybe I can find it in file? I need something like that: if [ $build_status == "FAIL" ] then do_the_magic fi I have already printed env and there is nothing that would directly say that build failed. 回答1: You are looking for the Conditional Build Step Plugin. Add a "Conditional step (single)" as your last build step and use "Current Build Status" for your condition. I like

Jenkins “Post Build Action” to deploy zip on Maven repository

余生颓废 提交于 2019-12-12 00:39:20
问题 I Have recently started using Jenkins and currently using version 1.492. I have a Maven module project which produces a Jar and a Zip files which I want to deploy to a Nexus Maven repository. When I build my project locally I get the message : Installing PROJECT_DIR/target/groupID/projectId-version.jar to LOCAL_REPO/ groupID/projectId-version.jar Installing PROJECT_DIR /groupID/projectId.zip to LOCAL_REPO/ groupID/projectId/version/ projectId-version-classifier.zip Using the "Post Build

MSBuild Post-Build

隐身守侯 提交于 2019-12-07 04:23:34
问题 I've got an MSBuild script that is just about doing everything that I need it to do apart from my post-build step (see a previous question that I asked: MSBuild conditional Exec?). What I'm looking to do is build many csproj files and optionally perform post-build steps if and only if the project was built. I don't want to perform my post-build step all the time or else the timestamp on my final output will be modified unnecessarily (and it makes the build process very time consuming for no

MSBuild Post-Build

倾然丶 夕夏残阳落幕 提交于 2019-12-05 10:03:45
I've got an MSBuild script that is just about doing everything that I need it to do apart from my post-build step (see a previous question that I asked: MSBuild conditional Exec? ). What I'm looking to do is build many csproj files and optionally perform post-build steps if and only if the project was built. I don't want to perform my post-build step all the time or else the timestamp on my final output will be modified unnecessarily (and it makes the build process very time consuming for no reason). In my MSBuild script I've got something like the following for each of my csproj files:

Jenkins svn commit post-build

删除回忆录丶 提交于 2019-12-05 04:08:57
I'm trying to make a post-build commit in Jenkins CI when it's succeeded. Is there a way to make this? My problem is that when i build it generates some dll's in the workspace that i need to commit to the svn. It depends on the build technology (e.g. Ant, Maven, MSBuild or FianlBuilder) you use for building your source code. To check-in your build results into your svn, you should add some new steps at the end of your build scripts. This step will simply add your build results to svn. For example your step may contain: svn commit --file build-output.1 build-output.2 It should be noted that