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

Pass secrets to post build actions

I need to use a secret file in a post-build action in a Jenkins job. I'm using plain bash scripts and can't use Jenkinsfiles for some reasons. But The credentials plugin cannot use secret file env variables in any post build step. The secret…
0
votes
0 answers

VS Post-Build event creating file instead of copying folder contents

There is a folder that gets brought in from a reference when I build and is created in my output directory, the path to it is "bin/debug/lib". For legacy purposes I need this folder to be copied to the following path "bin/lib". I am using the…
cullimorer
  • 755
  • 1
  • 5
  • 23
0
votes
1 answer

Can`t add cucumberTestResults as a post-build action to my dsl file

I am trying to add the cucumberTestResults as a post-build action to my dsl file. But it is just getting ignored. job('example-atm') { scm { git { branch(branchName) remote { url(gitUrl) …
0
votes
0 answers

How to put a timeout on Computer.waitUntilOnline

Short version In a Jenkins post-build groovy script, is there a way to have the Computer.waitUntilOnline function time out after a certain period of time? Background We do testing for embedded devices, and our jenkins slaves are laptops connected to…
frederikvs
  • 43
  • 6
0
votes
2 answers

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

Hy there! I'm using this piece of code, to copy some files on post-build-event: ..\demoPath1
user57508
0
votes
1 answer

Use post-build-scripts in buildroot

i use buildroot to build my own rootfs and use post-build.sh to customize it. In concrete i create a textfile in /opt with touch $TARGET_DIR/opt/testfile01.txt and run the make command. I checked the out coming rootfs and testfile01.txt is in…
user9969421
0
votes
2 answers

CMake custom target doesn't build

I'm building two targets using: add_library(tgt1 SHARED a.cpp) add_library(tgt2 SHARED b.cpp) After both are built, I need to run a post build step that depends on both targets. I tried many combinations of the following but with no…
gil_mo
  • 575
  • 1
  • 6
  • 27
0
votes
2 answers

Post-Builds in TFS Team Build best practice

i have a question about Post-Builds. We have a Post-Build in project settings. This Post-Build task compress JavaScript because of Web Application performance. Assembly path is assigned by variable $(YUICompressorDLLPath). Generally it works fine…
Anton Kalcik
  • 2,107
  • 1
  • 25
  • 43
0
votes
2 answers

Jenkins post build task if status changed from "failed" to "success" (fixed)

In a Jenkins freestyle job (on an older 1.6x version, no support for 2.x pipeline jobs) I would like to run a shell command (curl -XPOST ...) as a post build step if the build status recovered(!) from FAILED to SUCCESS. However, all plugins for…
Dirk
  • 9,381
  • 17
  • 70
  • 98
0
votes
1 answer

Jenkins build summary link to post-build build summary

I have a job that is triggered as a post-build action for dozens of other jobs. It essentially organizes and process the artifacts of those upstream jobs (using Copy Artifact Plugin), and publishes the reformatted logs, and originals, as artifacts…
ebeezer
  • 430
  • 6
  • 12
0
votes
1 answer

How to copy target files using cmake from major CMakeLists.txt?

As an example suppose four folders(app1, app2, app3 and main) such as below main |__ CMakeLists.txt \__ module1 |______ CMakeLists.txt |______ sub1.cpp |______ sub1.h \__ library5 |______ CMakeLists.txt |______ sub5.cpp |______…
Bonje Fir
  • 787
  • 8
  • 25
0
votes
2 answers

How can I add a Jenkins post action to execute two different scripts once the build successed or failed exclusively?

I want to execute a shell scripts if the Jenkins job build successful or another scripts if the Jenkins job build failed. I added the post build task plugin, but it seems only can execute a shell in all status or just successful status, cannot…
user1744416
  • 171
  • 1
  • 12
0
votes
0 answers

Copy file from relative project path using post build event in Visual Studio

I’m trying to copy a dll compiled file from the ‘Output path’ using post-build event in Visual Studio with xcopy. When I set the output path to be on the same hard drive as the project itself, the path changes itself to a relative path…
user3364652
  • 480
  • 8
  • 23
0
votes
2 answers

Delete jenkins project after build

A user is able to create jenkins jobs from the application in order to schedule an action. I would like to know if it's possible to delete a jenkins project after the build has been executed. There is the Post-build action "delete workspace when…
xAngy
  • 27
  • 1
  • 9
0
votes
1 answer

How to sign a binary as part of post build step using sn.exe from Windows SDK?

I am a totally unfamiliar in this C# Visual Studio programming environment but I am required to finish a task. I am sorry if my question seems silly. But I really could not understand what other posts on this site or other site on the net…
Eryn Ng
  • 1
  • 3
1 2 3
8 9