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
1
vote
1 answer

Post Build event that works on both Azure DevOps and Local PC

I have a VS2017 solution that Builds both locally and also on Azure DevOps. I now need to run a Post Build script to run an EXE. I have this working on my local machine, but I guess there will be an issue with the Path to the EXE which has been…
1
vote
1 answer

How do you copy project files into build folder post-build in azure devops pipeline?

We have a build pipeline set up with a "Visual Studio Build" step. I just need it to copy one of the project files into the build folder before publishing it to our server. Trying to copy a .runsettings project file for unit testing. So far I've…
frostymm
  • 19
  • 1
  • 6
1
vote
0 answers

How to set path of your dll file in post-build event for visual studio 2017

I have a .net application (Class Library). I want to run this command "editbin /largeaddressaware "$(TargetPath)" " in post build event.Can anyone tell me how to give MyFile.dll path in target dir.
1
vote
2 answers

Escaping a dollar sign in Postbuild

I'm trying to execute a command in Postbuild which uses a dollar sign. I've tried all the solutions here but none work. echo "$(runtime.testbin)" Trying to do this throws an exception when I try to build, I tried escaping with: echo…
TomSelleck
  • 6,706
  • 22
  • 82
  • 151
1
vote
1 answer

How to Fix -- Jenkins Post-build Action Groovy script fails to evaluate

I'm new to Groovy and am trying to invoke a Groovy script as a Jenkins Post-build Action, but whenever I run it, I'm getting "ERROR: Failed to evaluate groovy script": groovy.lang.MissingMethodException: No signature of method: Script1.stage() is…
1
vote
0 answers

How to access environment variable in post-build access for jira plugin

I installed JIRA Plugin for the jenkins. It add some action in Post-build Action menu. One of the action is JIRA: Update relevant issues. When I try to access Environment Variable, it gives error. WARNING: jira rest client get issue from jql search…
Nilesh
  • 20,521
  • 16
  • 92
  • 148
1
vote
0 answers

Copy dll to another project in post-build but SolutionDir is level down

I want to copy dll from a project to another in same solution in post-build, but all the solution Directory doesn't help me and nothing in Marcos did. for example: pro1 in C:/A/B/Pro1 pro2 in c:/A/B/Pro2 solution in C:/A/B/SolutionFolder I want to…
Alaa'
  • 487
  • 3
  • 7
  • 16
1
vote
1 answer

CMake: How to copy different files to build directory according to configuration and architecture

I'm generating my vcxproj and sln files for MSVC with CMake. I want to copy some dlls in build directory as POST_BUILD event which are different according whether I'm building Debug or Release configuration and whether it is x86 or x64 architecture.…
bobeff
  • 3,543
  • 3
  • 34
  • 62
1
vote
1 answer

Jenkins groovy postbuild alternative

You may know that the Postbuild Script plugin is labeled deprecated in 1.62. Link: https://github.com/jenkinsci/job-dsl-plugin/wiki/Migration#migrating-to-162 I'm using it to do several things such as to read the log file and do tasks when it…
lenkovi
  • 1,708
  • 2
  • 11
  • 16
1
vote
1 answer

Use Jenkins Parametrised Build to control execution of Post-Build Actions

Is there any way that I can use Jenkins Choice Parameters to control the execution of Post-Build jobs in a project? I have my project which is building a war file and sometimes (not all the times) I would like this war file to be send to Amazon S3…
motokazi
  • 13
  • 3
1
vote
2 answers

How to instruct Jenkins to look for email template in user defined path (OTHER THAN $JENKINS_HOME/email-templates)

I have groovy email template(for Selenium Robot framework test execution) for Jenkins. Jenkins master is controlled by a remote team. So for placing this template in $JENKINS_HOME/email-templates, we need to raise a ticket and wait from 2 to 3 days.…
1
vote
0 answers

NULL pointer Exception in Groovy postbuild Script

I am using the build flow project for combining the two different project test results.Then i am in need to change the build status of the aggregated test results so i am using groovy postbuild to change my build status.In that script if any one of…
gautham
  • 21
  • 2
1
vote
0 answers

Post-build event command line; how to level up in path and how to handle spaces

My goal is to copy a XML file from one project to another project in my solution after a succesful build. copy $(SolutionDir)Xenos.Core.API\XmlDocumentXenosCoreApi.xml $(ProjectDir)App_Data\XmlDocumentXenosCoreApi.xml This would translate in…
1
vote
1 answer

How to modify files in post-build script depending on a menuconfig flag?

I need to find a way to modify/edit a given file after Buildroot compilation and right before the creation of the rootfs depending on a menuconfig flag selection. I could find in the Buildroot documentation that it is possible to do that by using…
campescassiano
  • 809
  • 5
  • 18
1
vote
0 answers

How to create PostBuild event to update javascript version

I need to create a PostBuild event in my proj file so that after each build, the version of my javascript files get automatically updated based on the build number. Of course, this need to happen only when my js files is modified. Example: 1st…
1 2 3
8 9