Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins - Post Build to a Folder

does jenkins have a post build process such that the build WAR files can be made to be stored particular folder?

like image 699
Priyanka Iyer Avatar asked Nov 09 '12 00:11

Priyanka Iyer


People also ask

What is post build in Jenkins?

This feature allows user to associate shell or a batch scripts that perform some tasks on Jenkins depending on the build log output. If the log text has a match some where in the build log file, the script will execute and the post build log will append to the project build log. Java regular expression are allowed.

How do I create a folder in Jenkins pipeline?

Step #1: From within the desired folder, click “New Item” to create a new item (job/folder). In this case we're using the “Finance” folder we created in the previous task. Step #2: Enter a name in the textbox and select “Freestyle project” and click “OK” to create the job.

What is $workspace in Jenkins?

The jobs directory is the place where Jenkins stores the job definitions, build artefacts and build logs. Workspace is the directory that is used to create the build. One can choose which files to store as build artefacts in the job configuration.


1 Answers

There are a couple of different ways to move built files. The first is through plugins. Which plugin you use depends on where you want to store things. Try looking at these sections of the Jenkins Plugin list:

  • Artifact Uploaders
  • Other Post-build Actions (Some of them are "hidden" in here.)

The second way of moving built files is to brute force the move by creating a Jenkins build step to execute a set of shell commands.

like image 129
jwernerny Avatar answered Oct 07 '22 23:10

jwernerny