does jenkins have a post build process such that the build WAR files can be made to be stored particular folder?
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.
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.
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.
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:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With