title: How to push docker image to Nexus repository through Jenkinsfile?
body: <p>I have a Jenkinsfile pipeline creating 3 docker images/containers as below:</p>
  
  <pre><code>stage('Build images')
  {
      echo "workspace directory is ${workspace}"
      dir ("$workspace/build/virtuoso")
      {
        sh 'docker build -t virtuoso -f $WORKSPACE/build/virtuoso/Dockerfile .'
      }
      dir ("$workspace/build/wildfly")
      {
        sh 'docker build -t wildfly -f $WORKSPACE/build/wildfly/Dockerfile .'
      }
      dir ("$workspace/build/postgres")
      {
        sh 'docker build -t postgres -f $WORKSPACE/build/postgres/Dockerfile .'
      }
  }
  </code></pre>
  
  <p>I need to push these 3 images to Nexus repository manager. Can somebody help me on this?</p>