Can jenkins transfer one or more files to a formal environment and then publish them?

status:
1: the project is relatively large, with hundreds of megabytes of war packages, and the formal environment is all remote servers, so it is not realistic to repackage and release complete war.
2: you can only replace the appropriate files on the formal environment, and then restart the release.

prepare:
1: files to be replaced, such as 2 A.class and B.class
2:jenkins have been configured with 4 formal environments (different ip addresses and different configuration data)

question:
can jenkins send A.class and B.class to the four formal environments that have been configured above, and then restart the release for these four formal environments?


war package publishing cannot be done. If you often have this requirement, it is recommended to consider the distribution of microservices


Jenkins can be responsible for compiling and packaging, calling scripts. You can use Ansible or scp to replace files on a remote server

Menu