Our organization is relatively new to Docker and Jenkins. We are working on the development of our CI pipeline with updating the Java (Java) source code before launching the application.
Jenkins is currently using the Cloudbees Docker build and publish plugin to update the image after a successful build. It just pulls the database image (JBoss) and updates it with the WAR WAR file that he just created (via Maven).
We use the build step โSend commands via SSHโ for SSH to the server on which the container is currently running, stop the container with the specified image identifier and pull it out again and then start the container.
However, I know that there must be a better, more elegant way to do this. Surprisingly, I have problems finding documentation on how to do this. Any advice would be appreciated. Please let me know.
source share