Publication of the latest build in Jenkins

I played with Jenkins and it all worked. Version 1.447

However, I would like to โ€œpublishโ€ the latest stable build in an area outside of the Jenkins workspace / workspace. This would be where users could get the latest stable build for testing and save me the trouble of pointing them to.

Can someone recommend how I should approach this? Jenkins seems to have the ability to publish artifacts, but only in the Jenkins workspace / area. There is a good plugin that can do what I want. I also want to completely remove the existing assembly.

+4
source share
3 answers

Many plugins are available for this, depending on how you want to transfer your artifact ...

If you go here , find a section called Artifact uploaders , and it lists a lot of others that you can use depending on your need ...

+9
source

To do this, I add an action after assembly to start the second task (build other projects โ†’ projects for assembly, checkmark "only if the assembly is successful). All this second task is performed by a command (using the" execute shell "field), which deploys a stable assembly for testing.

If you do not want to save the existing assembly from the first work, you can not save the assemblies after they have been launched through the project configuration.

+1
source

If you are building a maven project, you can use maven 'deploy' to push build artifacts to your build repository (there can only be a file structure anywhere or it can be a true binary repository of artifacts)

0
source

Source: https://habr.com/ru/post/1390482/


All Articles