Step 1: Open the previous freestyle job and go to configure > build steps. Then select additional steps, > then execute shell. inside the shell, add any docker command, then save and run.

Step 2: After a successful Test, package and Build, go to console output and view the logs.
Below are the outcome of maven test and package


