Push docker image to Nexus
<p>Hello I have Jenkins and Nexus on the same server. When Jenkins build project correctly, i want push image to Nexus 3, but every time i have the same problem (log below).</p>

<p>Configuration:
pom.xml </p>

<pre><code>&lt;nexus.url&gt;http://adress/#browse/browse/components:docker-image&lt;/nexus.url&gt;

&lt;distributionManagement&gt;
   &lt;snapshotRepository&gt;
        &lt;id&gt;nexus&lt;/id&gt;
        &lt;url&gt;${nexus.url}&lt;/url&gt;
    &lt;/snapshotRepository&gt;
&lt;/distributionManagement&gt;
...
&lt;plugins&gt;
        &lt;plugin&gt;
            &lt;groupId&gt;org.sonatype.plugins&lt;/groupId&gt;
            &lt;artifactId&gt;nexus-staging-maven-plugin&lt;/artifactId&gt;
            &lt;version&gt;1.6.4&lt;/version&gt;
            &lt;extensions&gt;true&lt;/extensions&gt;
            &lt;configuration&gt;
              &lt;serverId&gt;nexus&lt;/serverId&gt;
              &lt;nexusUrl&gt;${nexus.url}&lt;/nexusUrl&gt;
              &lt;autoReleaseAfterClose&gt;true&lt;/autoReleaseAfterClose&gt;
            &lt;/configuration&gt;
        &lt;/plugin&gt;
</code></pre>

<p>And i have file settings.xml:</p>

<pre><code>&lt;servers&gt;
 &lt;server&gt;
    &lt;id&gt;nexus&lt;/id&gt;
    &lt;username&gt;login&lt;/username&gt;
    &lt;password&gt;password&lt;/password&gt;
 &lt;/server&gt;
&lt;/servers&gt;
</code></pre>

<p>Then i try "mvn clean deploy" and result is:</p>

<pre><code>[INFO] Deploying remotely...
[INFO] Bulk deploying locally gathered artifacts from directory: 
[INFO]  * Bulk deploying locally gathered snapshot artifacts to URL http://adress/repository/image-docker/
Downloading: http://adress/repository/image-docker/someProject/0.1-SNAPSHOT/maven-metadata.xml
Uploading: http://adress/repository/image-docker/someProject/0.1-SNAPSHOT/someProject-0.1-20161213.093022-1.jar
Uploading: http://adress/repository/image-docker/someProject//0.1-SNAPSHOT/someProject-0.1-20161213.093022-1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:58 min
[INFO] Finished at: 2016-12-13T10:30:35+01:00
[INFO] Final Memory: 75M/748M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.4:deploy (injected-nexus-deploy) on project someProject: 
Failed to deploy artifacts: Could not transfer artifact someProject:jar:0.1-20161213.093022-1 from/to nexus (http://adress/repository/image-docker/):
Failed to transfer file: http://adress/repository/image-docker/someProject/someProject/0.1-SNAPSHOT/someProject-0.1-20161213.093022-1.jar. 
Return code is: 502, ReasonPhrase: Bad Gateway. -&gt; [Help 1]
</code></pre>

<p>Every time is the same problem with 502 - Bad Gateway.</p>

<p>Do you have some proposal?</p>