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
0
votes
0 answers

Add post-build action in multiple Jenkins jobs via groovy script

Can someone help me create groovy script that add post-build action to multiple jobs at the same time? Post-Build I am trying to add is the "re-try build after" set to 3 times if job is unstable or fails. looks like below from the config.xml I am…
Mochi79
  • 55
  • 1
  • 6
0
votes
1 answer

Copy a file in Post Build of Eclipse/Truestudio

I was using arm-objcopy but it doesn't work with my .h file I need to copy to another project. xcopy "../${project_loc}/src/folder/file.h" "....\OtherProject\folder\folder2\file.h" /Y The error I get is "Invalid number of parameters". Earlier it was…
ConductedForce
  • 194
  • 2
  • 14
0
votes
1 answer

CMake replacing a string while copying file

Hi there my project has job.sh in a root dir the file contains #!/bin/bash #SBATCH --job-name=$(REPLACEME) #SBATCH --tasks=4 #SBATCH --computers=1 run ./myApp now I would like to somehow copy the file to builddir as well as replace $(REPLACEME)…
Hojzerice
  • 35
  • 3
0
votes
1 answer

Where do we edit AfterBuild target in Visual Studio

Today, I came to know about AfterBuild target when I was trying to build a GitHub project. I had hard time figuring out a failing command which was getting fired after the build. I was not sure from where the command was getting fired because its…
RBT
  • 24,161
  • 21
  • 159
  • 240
0
votes
2 answers

Shell commands using Cmake add_custom_command on Linux

I can't figure out the right syntax to run a shell command in a post-build step in Cmake on Linux. I can make a simple echo work, but when I want to e.g. iterate over all files and echo those, I'm getting an error. The following…
Yellow
  • 3,955
  • 6
  • 45
  • 74
0
votes
1 answer

GROOVY: Finding a string from console output if a regexp string found

I have the following console output from a jenkins build: 23:21:16 [ ERROR ] - Problem occured while installing the chart AbCdEfG , aborting! if the line appears, i want to be able to get only AbCdEfG and put it in error message, or in a…
0
votes
1 answer

C# Visual Studio TargetPlatform macro

We´ve got some thrid party c++ dll´s which are either x64 or x86. Now we want to write a post build script, which copies the x86 dll´s into target directory, if the targetplatform is x86 or the other way around. Our script looks like: xcopy…
Felix Arnold
  • 839
  • 7
  • 35
0
votes
1 answer

Post-Build should ignore Exit-Code of Sub-Task

I have a Visual Studio 2019 project with a Post-Build-Event, that is calling an EXE file I have written in C#. Post-Build event: MyTool.exe "$(TargetPath)" This EXE file is doing some stuff and then calling another EXE file. AnotherTool.exe…
0
votes
2 answers

Using C macros in eclipse post-build step

This question has been asked before (there are questions that are 5 or 10 years old) but without any real answer, usually a different approach has been used. I'm working on a project where a different approach is simply not possible. We are using a…
anishtain4
  • 2,342
  • 2
  • 17
  • 21
0
votes
1 answer

I need to insert a file to a VSIX in Post Build or Build

I have a VS extension project, this extension use a lot of dlls and one of these dll install to a Chrome Driver a Chrome Extension, this chrome extension file needs to be placed in the same folder of the dll when the VSIX is installed, but, when I…
InfJ
  • 43
  • 1
  • 5
0
votes
1 answer

Jenkins post build script loads forever

I've made a web hook with bitbucket, and everything is working fine except the post build script, I'm trying to execute a shell command to push the build on the staging server, for some odd reason the shell hangs/loads forever after successfully…
Tghosh
  • 180
  • 3
  • 14
0
votes
2 answers

How to check if file exists in jenkins workspace for freestyle job

I need to validate if a file exist in jenkins workspace after HTML publish. So this would be a post-build groovy script execution: Tried the following: def fileName = "/temp/new_invoices.txt" def testFile = new File(fileName) if (!testFile.exists())…
user312307
  • 153
  • 6
  • 21
0
votes
1 answer

Unity show post build data in game

I am trying to show post/pre build data to user in the unity game, something I want to update whenever I process a build. turns out in unity, the updated file version after pre or post build is not included in assets. It still fetches the data…
Jajan
  • 887
  • 3
  • 15
  • 28
0
votes
1 answer

Dynamically wait for jenkins' sub jobs to finish and set parent job status based on their statuses

I have a groovy post-build script that dynamically calls for a sub jobs based on an input file file.txt: Each line in file.txt is then passed into a new subjob. import hudson.model.* def file =…
ocp1000
  • 571
  • 1
  • 5
  • 12
0
votes
1 answer

Jenkins post build python script file

I am new to Jenkins, specially with using python script in Jenkins. The problem I am facing is as follow: I am trying to run a python script from a python file in the post-build step of the Jenkins. I have added all the plugins required for that…
A 786
  • 488
  • 1
  • 6
  • 16
1 2 3
8 9