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
4
votes
1 answer

Post-build Actions part does not see injected environment variable

A script generates a properties file to work-space in an Execute shell block in the Build section. This file is available at work-space after script execution and in case of Failed build (Conditional steps (multiple) block in the Build section) this…
4
votes
1 answer

ng build succeeds, but " cannot find module '@angular/core' " once opened in browser

Doing searches on StackOverflow and Google just yields myriads of results which either seem either voefully outdated with the modern pace of JS or fail during the build part, or issue with VSCode or IntelliJ lint throwing a fit; which is not my…
MAL
  • 41
  • 2
4
votes
1 answer

Add warnings to project error list from the output of a post build tool

I have a command-line tool that I run as a post-build event. The tool does some analysis on the code in my project and generates a text file as its output. I'd like to take the text file generated by the tool and add its contents to my project's…
4
votes
0 answers

Cannot access the "manager" variable in Jenkins

I'm trying to run a Groovy script as a post-build action. Unfortunately, I cannot use the manager variable. The following code: import jenkins.* import jenkins.model.* import hudson.* import hudson.model.* def failedSummary =…
GMichael
  • 2,726
  • 1
  • 20
  • 30
3
votes
1 answer

How to copy target's all runtime dependencies after build process in CMake?

I'm trying to organize auto-copying runtime dependencies of executable targets to its built directories. As case I use GTest for unit-testing that is linking as shared libraries. After building if I try to launch unit-tests there will be an error…
3
votes
1 answer

CMake ExternalData custom fetch script

Introduction I have a project with a "tests" target that requires some extracted assets from a remote source to be present in the build tree at run-time. At present I have used ExternalData to, at build time, retrieve a zipped file from a remote url…
geo
  • 136
  • 1
  • 7
3
votes
2 answers

Post-build commits: good or bad?

Is it a good policy to automate source control commits following successful builds? Edit: I'm asking because I want more frequent, incremental commits between versions that make it easier to find the point where a bug was introduced than rolling…
Petrus Theron
  • 27,855
  • 36
  • 153
  • 287
3
votes
0 answers

.NetCore project.json "scripts" does not run any command

I need a simple postcompile script to work, but i cant seem to get any script to work.. in my project.json i have the following: "scripts": { "postcompile": "echo before building", "precompile": "echo after building" } but when i build,…
Tomer W
  • 3,395
  • 2
  • 29
  • 44
3
votes
2 answers

Spaces and backslashes in Visual Studio build events

I have an application that is supposed to aid my project in terms of pre- and post-build event handling. I'm using ndesk.options for command line argument parsing. Which gave me weird results when my project path contains spaces. I thought this was…
Oliver Salzburg
  • 21,652
  • 20
  • 93
  • 138
3
votes
2 answers

Pass parameter from build step to post-build step in Jenkins

How can I pass a parameter in Jenkins from a build step to post-build step? I don't want to do it through a file, as it's just a simple string (version number) that I want to pass. In post-build I use Groovy postbuild plugin to add this string to…
Ivan
  • 9,089
  • 4
  • 61
  • 74
3
votes
1 answer

Solution Converted from Visual Studio 2008 Fails Gacutil Post-Build Steps in Visual Studio 2010

I have converted a .NET 2.0 solution containing multiple projects from Visual Studio 2008 (where everything build correctly) to Visual Studio 2010. I loaded the solution in Visual Studio 2010 running in Admistrator mode and selected "Build…
3
votes
0 answers

How to execute a post-build command in NetBeans to run Windows/DOS batch file?

I'm attempting to do something which should be very simple. After executing a build in NetBeans IDE I wish to run a Windows executable for some post-processing. This executable needs to be run in a different directory than the project directory, so…
PaulJNewell
  • 239
  • 3
  • 9
3
votes
1 answer

Visual Studio Post Build Event - xcopy to different relative directory

Essentially, what I want to do is use a wildcard for a directory. The post build event is on a PageComponents project: PageComponents WidgetTemplates WidgetTemplate1 Usercontrol1 WidgetTemplate2 …
2
votes
0 answers

Visual Studio 2019 NET 5.0 deletes $(outdir) in the post-build event editor

I converted a simple Net Framework 4.8 C# project to net5.0 using the dotnet tool upgrade-assistant. The project consists of one file of C# constants (not complex). The conversion went more or less okay; vs2019 only gave me framework options of…
Kevin
  • 1,548
  • 2
  • 19
  • 34
2
votes
1 answer

Jenkins publishers postBuildScripts doesn't work

I have a groovy script to setup a scheduled job in Jenkins. I want to execute some shell scripts on failed build. If I had the scripts manually after the job creation after the job is updated by groovy script, they run. But the groovy script does…
matisa
  • 497
  • 3
  • 25
1
2
3
8 9