artifactory icon indicating copy to clipboard operation
artifactory copied to clipboard

it seems not possible to create a repo/dir from ArtifactoryPath

Open metrue opened this issue 9 years ago • 5 comments

I mean if I I want create a path like this:

http://localhost:8080/artifactory/<xxx-yyy>

is that possible, I got exception:

AssertionError: OSError(2, "No such file or directory:

metrue avatar Aug 15 '16 06:08 metrue

Any update? I cannot create directory. I got 404 error - lines which check if exist give me that result

if pathobj.exists():
raise OSError(17, "File exists: '%s'" % str(pathobj))

But when I comment it I got error 500 error 500 Repository '' is not a local repository Any quick fix?

diablo248 avatar Aug 31 '16 06:08 diablo248

@diablo248

I gave up this library at last, and created one by myself, will open source it soon.

for your issue, I am not clear.

metrue avatar Aug 31 '16 07:08 metrue

I found issue, I think I cannot create empty dir in artifactory. I remove: if self.is_dir(): target = self / pathlib.Path(file_name).name from deploy_file and now it works ok, deploy_file create all necessary folders and file, but it is necessary to create ArtifactoryPath with filename.

diablo248 avatar Aug 31 '16 07:08 diablo248

I have found that when I tried to create a directory on artifactory, I received
OSError(2, "No such file or directory: or RuntimeError:{"errors":[{"status":404,"message":"Resource not found"}]} due to missing or incorrect auth (i.e. username/password). These were cryptic and misleading errors.

cowlinator avatar Sep 27 '17 03:09 cowlinator

Creating a repository supported in https://github.com/devopshq/artifactory

https://github.com/devopshq/artifactory#repositorylocal

allburov avatar Nov 14 '18 02:11 allburov