1

I am using a generic service connection for sonatype nexus repository in Azure Devops but I'm getting an error

HttpResponse.statusCode: 404, HttpResponse.statusMessage: Repository not found

enter image description here

I can upload artifacts using curl command and have valid access to the repository. I tried different urls and options but no luck.

Full error:

Upload failed, HttpResponse.statusCode: 404, HttpResponse.statusMessage: Repository not found

##[error] Upload failed, HttpResponse.statusCode: 404, HttpResponse.statusMessage: Repository not found

##[debug]Processed: ##vso[task.issue type=error;]Upload failed, HttpResponse.statusCode: 404, HttpResponse.statusMessage: Repository not found

##[debug]task result: Failed
##[debug]Processed: ##vso[task.complete result=Failed;]Upload failed, HttpResponse.statusCode: 404, HttpResponse.statusMessage: Repository not found
Finishing: nexusArtifactUpload

Logs: nexusUploadUrl=https://nexus-xxx-org/nexus/repository/ service/local/artifact/maven/content

Above URL is wrong, any idea how can I update service/local/artifact/maven/content? Thanks in advance!

John_D
  • 31
  • 1
  • 4
  • Looks like you need to remove /nexus/repository from your service connections server url – jessehouwing Jan 30 '22 at 19:17
  • 1
    No, I got the same 404 error without /nexus/repository as well. ##[debug]Processed: ##vso[task.complete result=Failed;]Upload failed, HttpResponse.statusCode: 404, HttpResponse.statusMessage: Not Found Finishing: nexusArtifactUpload – John_D Jan 31 '22 at 09:42

0 Answers0