title: How to push the artifacts into docker image in Jenkins
body: <p>How can i create a docker image of the artifacts using docker instruction. I am using "Build Inside a docker container" in jenkins job.
  This is the instruction in the dockerfile:</p>
  
  <pre><code> install openjdk 8`RUN apt-get update &amp;&amp; \
      apt-get install -y openjdk-8-jdk &amp;&amp; \
      apt-get install -y ant &amp;&amp; \
      apt-get clean;`
  </code></pre>
  
  <p>Then I need to control back to Jenkins job to perform the Build process.
   So in Build process in jenkins Job, "Execute Shell" commands are executed and artifacts are created.
  It has some post build action to run the junit test cases and run coverage report.
  In the end, I need the dockerfile to run the instruction to create image of the artifacts.
  Add sourcefile destinationfile
  Please suggest how to write docker instruction to give the control to jenkins job and get the control after build process is done.</p>