Questions tagged [post-build]

Questions relating directly to activities and actions that take place following the successful build of any software.

In software, a build is the process of constructing software such that an output is produced.

The build is logically split into stages, with post-build occurring after the main build has completed, typically on completion of a successful build.

At the post-build state, many build tools offer the ability to carry out additional scripted actions to allow further functionality to be executed on the built software.

131 questions
116
votes
20 answers

Post Build exited with code 1

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…
Tim Scott
  • 15,106
  • 9
  • 65
  • 79
46
votes
1 answer

Where is the logfile located for Xcode Scheme Post-Actions?

I am running a script in my Xcode project in the Scheme's Build->Post-actions "Run Script". It runs fine but I would like to see the console output of that script. It doesn't seem to be included in the Log Navigator tab, where can I find this log?
Locksleyu
  • 5,192
  • 8
  • 52
  • 77
25
votes
4 answers

Running a Post Build script when a Jenkins job is aborted

Is there a possible way / plugin that can run a post build script when a Jenkins job is aborted. I do see that the post build plugin provides an action to execute a set of scripts, but these can be run only on 2 options either a successful job or a…
Jose
  • 1,333
  • 5
  • 20
  • 38
15
votes
1 answer

"If" syntax for post-build macros in VS 2010

I'm trying to to add a post-build macro that would conditionally copy some files after the build if the configuration is not "Debug". I'm trying the following: if ('$(ConfigurationName)' <> 'Debug') copy /y…
Andrey
  • 20,487
  • 26
  • 108
  • 176
15
votes
1 answer

How to run parametrized job after another (without params)

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'…
user706058
  • 415
  • 3
  • 11
  • 23
14
votes
1 answer

Visual Studio Post-build event: for %f in (set) command

This command in the Visual Studio 2010 Post-build event for %f in ("$(ProjectDir)$(OutDir)*.dll") do echo %f (echo will be replaced with some other tool) gives me the error The command "[...]" exited with code 255. I guess I have to escape the…
herzmeister
  • 11,101
  • 2
  • 41
  • 51
13
votes
3 answers

Minify JavaScript and Attach Version Number using VS2010

I have a few goals I'd like to achieve but I'm unsure of how to get there: Create a single-click deployment for my web project that includes a minified javascript file Version my minified JavaScript file to prevent browser caching of static content…
Blake Blackwell
  • 7,575
  • 10
  • 50
  • 67
10
votes
2 answers

Is it possible to set multiple environment variables in one CMD line statement?

I have a PowerShell script set to execute after an MSBuild is finished. It uses environment variables set in the POSTBUILD section of the build process (build directories and the like.) Currently it looks like this: set MAGE="C:\Program Files…
8
votes
1 answer

Jenkins svn commit post-build

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.
Filipe Inácio
  • 103
  • 1
  • 2
  • 5
7
votes
4 answers

"Attach to Process" as a post-build event

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…
JosephStyons
  • 57,317
  • 63
  • 160
  • 234
6
votes
2 answers

Post build script returning errorlevel 255

I currently have the following script as post build on a project: if $(ConfigurationName) == "Debug (x64)" || $(ConfigurationName) == "Release (x64)" (goto :x64) if $(ConfigurationName) == "Debug" || $(ConfigurationName) == "Release" (goto…
Femaref
  • 60,705
  • 7
  • 138
  • 176
6
votes
2 answers

Developing Jenkins post-build plugin

I am currently developing a simple plugin that retrieves results from a Jenkins build. I am extending Notifier and using build.getResults() to get the information. However, when I upload my plugin, I can't set it as a post-build action. When I…
ksdnlee
  • 91
  • 2
  • 10
5
votes
1 answer

Visual Studio doesn't see all files in System32

I set some post-build commands in Visual Studio 2017 that should allow me to run a program that I currently have in System32 (wsl.exe). However, Visual Studio doesn't see the program. I tried to set the command to dir C:\Windows\System32\ to see all…
5
votes
3 answers

MSBuild Post-Build

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…
Alan Spark
  • 8,152
  • 8
  • 56
  • 91
5
votes
0 answers

CMake/CPack: add_custom_command TARGET package POST_BUILD

Having the same problem as here described, I want to execute a shell script as a POST_BUILD command of TARGET "package". Target platform is Debian/Ubuntu. I add following to the end of my CMakeLists: add_custom_command( TARGET package …
Polybos
  • 51
  • 3
1
2 3
8 9