pushing maven artifact to nexus through jenkins

Viewed 15

I want to push my artifact from jenkins to nexus but I am getting this error

Error response from daemon: login attempt to http:142.93.XXX.XXX:8081/v2/ failed with status: 404 Not Found
Build step 'Execute shell' marked build as failure
Finished: FAILURE

My Docker commands

docker build -t 142.93.XXX.XX:8081/java-maven-app:1.0 .
echo $PASSWORD | docker login -u $USERNAME --password-stdin 142.93.XXX.XX:8081
docker push 142.93.XXX.XX:8081/java-maven-app:1.0

Everything is correct except the v2 folder that is not on the repository. I was thinking that should be created automatically. How do I solve this issue and I cant create the folder manually.

0 Answers
Related