Quantcast

Create Empty Folder

classic Classic list List threaded Threaded
8 messages Options
Raj
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Create Empty Folder

Raj
Hi Team,

We have 12 projects which will make up a product.

To create a final product we need to compile all the project dependencies and then package.

So now I am trying to create one repository and create 12 folders under that repository. 12 folders will contain release binaries of 12 different projects which includes maven, c , c# etc.

I explored and found there is no straightforward way to create an empty folder in Artifactory

Can anyone suggest an alternate, using REST API's to create empty folders in Artifactory.

Note: I am using PRO version.

Any suggestion and help on this regard is highly appreciated.

Thanks in Advance.

Cheers
Raj
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Create Empty Folder

HughG_TMVSE
Hi Raj,

I think I understand what you're trying to do, but you might need to think about Artifactory a bit differently.  (Apologies if you already understand all this -- but the way I read your question, maybe you don't yet.)

* Path Structure

Although it looks and (sort-of) works like a filesystem (you can create any folder structure you like), really it's meant to be used more like a database: the path structure you create should follow common patterns so that other tools can read it automatically.  For example, with a JVM-oriented tool like Maven, Ivy, or Gradle, the user specifies a "group:name:version" string and the tool translates it into an HTTP URL, e.g., "https://myartifactory.local/some-repo/group/name/version" and then looks for files below that.  If you make your own structure, those tools will require some customisation to use it.

* Dependency Metadata

Module versions in Artifactory can (and usually do) come with some kind of metadata file which describes their dependencies on other module versions.  Again for JVM-oriented tools, this is normally a "pom.xml" or "ivy.xml".  So, if you wanted to make one module which "pulls in" other modules, you would normally put that relationship information in the metadata file.

* Repository Types

Normally in Artifactory (at least from 4.x) each repo is intended for one type of module (JVM, .NET, npm, and so on) in one format (for example, JVM modules can be in Maven POM or Ivy format).  If you store different kinds of module in one repo, some features of Artifactory won't work as well (e.g., searching, and bulk deletion of versions).  If you store them in different formats (whether or not they're in the same repo), there isn't really any off-the-shelf tool which will let you track the dependencies between modules automatically.


My suggestion would be one of the following.

1. Put each module in its own kind of repo, and write your own metadata format plus some script (or extend some other tool like Gradle) so that it can pull all those modules from Artifactory and put them together on another machine in the layout you want.  It might be enough to use the REST API or the "Art" command-line tool.

2. Put all modules in the same repo as ZIP files and use a tool like Gradle to pull them down.  The advantage is that Gradle understands ZIP files automatically so you can do more with them in one scripting tool.  The disadvantage is that you lose any "smart" integration with other tools (e.g., Visual Studio using a NuGet repo).

But whatever you do, keep it simple to start with!


Hope that's helpful ...

Hugh Greene, Senior Software Developer
Toshiba Medical Visualization Systems Europe, Ltd
Bonnington Bond, 2 Anderson Place, Edinburgh EH6 5NP, UK
Tel + 44 (0)131 472 4792 / Fax + 44 (0) 131 472 4799
http://www.tmvse.com / mailto:[hidden email]

DISCLAIMER
Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message.


-----Original Message-----
From: Raj [mailto:[hidden email]]
Sent: 25 April 2016 12:19
To: [hidden email]
Subject: [Artifactory-users] Create Empty Folder

Hi Team,

We have 12 projects which will make up a product.

To create a final product we need to compile all the project dependencies and then package.

So now I am trying to create one repository and create 12 folders under that repository. 12 folders will contain release binaries of 12 different projects which includes maven, c , c# etc.

I explored and found there is no straightforward way to create an empty folder in Artifactory

Can anyone suggest an alternate, using REST API's to create empty folders in Artifactory.

Note: I am using PRO version.

Any suggestion and help on this regard is highly appreciated.

Thanks in Advance.

Cheers
Raj




--
View this message in context: http://forums.jfrog.org/Create-Empty-Folder-tp7580924.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com ______________________________________________________________________

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Raj
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Create Empty Folder

Raj
In reply to this post by Raj
Hello Hugh,

Many Thanks for your reply.

I had proposed managing different binaries in corresponding repo's.

But team is very keen on managing all the binaries in single repo(Generic repository)

So I need to work on a structure like this

Generic repository on a high level and multiple folders under that generic repository
          Folder1(Project1)-->Binaries
          Folder2(Project2)-->Binaries
          Folder3(Project3)-->Binaries
          Folder4(Project4)-->Binaries
          Folder5(Project5)-->Binaries

Now, as per Artifactory features I cant upload a folder until it is zipped, so i need to create an empty folder and then upload binaries.
unfortunately I cant create empty folders using Artifactory User Interface.

So I am exploring options using curl to create an empty folder in a generic artifactory repository via command line and no joy yet in doing so.

Can you please advice if there is an option to just create an empty folder in Generic Artifactory Repository.

I know shying away from the actual purpose of artifactory is not a good practice but sometimes have to try these kind of options :)

Cheers
Raj



 

Raj
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Create Empty Folder

Raj
In reply to this post by HughG_TMVSE
Hello Hugh,

Many Thanks for your reply.

I had proposed managing different binaries in corresponding repo's.

But team is very keen on managing all the binaries in single repo(Generic repository)

So I need to work on a structure like this

Generic repository on a high level and multiple folders under that generic repository
          Folder1(Project1)-->Binaries
          Folder2(Project2)-->Binaries
          Folder3(Project3)-->Binaries
          Folder4(Project4)-->Binaries
          Folder5(Project5)-->Binaries

Now, as per Artifactory features I cant upload a folder until it is zipped, so i need to create an empty folder and then upload binaries.
unfortunately I cant create empty folders using Artifactory User Interface.

So I am exploring options using curl to create an empty folder in a generic artifactory repository via command line and no joy yet in doing so.

Can you please advice if there is an option to just create an empty folder in Generic Artifactory Repository.

I know shying away from the actual purpose of artifactory is not a good practice but sometimes have to try these kind of options :)

Cheers
Raj
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Create Empty Folder

mdeboeck
You could create on your PC a directory structure which resembles the structure you want in your repo, then zip this structure, and finally deploy the resulting zip-file as an artifact bundle to the Artifactory repo.

But I would also advice to structure your repos according to the type of Artifacts you're deploying in these repos, and to respect the structure that you will configure for your repos.

Regards,
Marc
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Create Empty Folder

HughG_TMVSE
In reply to this post by Raj
Hi Raj,

could you try uploading an empty dummy file first, and then deleting it once you've uploaded everything else -- or just leaving it there and ignoring it?  Or uploading an actually useful file if, say, you want to put ivy.xml in there.  If you just always upload the same zero-byte "dummy.txt" or something, it should only be stored once in Artifactory.

I think Marc's suggestion is probably better, though!

Regards,

Hugh Greene, Senior Software Developer
Toshiba Medical Visualization Systems Europe, Ltd
Bonnington Bond, 2 Anderson Place, Edinburgh EH6 5NP, UK
Tel + 44 (0)131 472 4792 / Fax + 44 (0) 131 472 4799
http://www.tmvse.com / mailto:[hidden email]

DISCLAIMER
Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message.


-----Original Message-----
From: Raj [mailto:[hidden email]]
Sent: 26 April 2016 07:23
To: [hidden email]
Subject: Re: [Artifactory-users] Create Empty Folder

Hello Hugh,

Many Thanks for your reply.

I had proposed managing different binaries in corresponding repo's.

But team is very keen on managing all the binaries in single repo(Generic
repository)

So I need to work on a structure like this

Generic repository on a high level and multiple folders under that generic repository
          Folder1(Project1)-->Binaries
          Folder2(Project2)-->Binaries
          Folder3(Project3)-->Binaries
          Folder4(Project4)-->Binaries
          Folder5(Project5)-->Binaries

Now, as per Artifactory features I cant upload a folder until it is zipped, so i need to create an empty folder and then upload binaries.
unfortunately I cant create empty folders using Artifactory User Interface.

So I am exploring options using curl to create an empty folder in a generic artifactory repository via command line and no joy yet in doing so.

Can you please advice if there is an option to just create an empty folder in Generic Artifactory Repository.

I know shying away from the actual purpose of artifactory is not a good practice but sometimes have to try these kind of options :)

Cheers
Raj



--
View this message in context: http://forums.jfrog.org/Create-Empty-Folder-tp7580924p7580941.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Raj
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Create Empty Folder

Raj
Thanks Hugh,

I will convince my team on Marc's  suggestion which looks fine for now.

Slowly I'll let them move to typical repository structure which artifactory is meant for.

Thanks again for your suggestion and help.

I am there on LinkedIn in the name Raj Kumar. I work for Intel.
 
I am planning to create one forum for devops  guys so that each and everyone can contribute on each others problem statement.

If you are fine pls. Do send me a request.

Cheers
Raj


Sent from my iPhone

On 27-Apr-2016, at 5:46 PM, HughG_TMVSE [via Artifactory] <[hidden email]> wrote:

Hi Raj,

could you try uploading an empty dummy file first, and then deleting it once you've uploaded everything else -- or just leaving it there and ignoring it?  Or uploading an actually useful file if, say, you want to put ivy.xml in there.  If you just always upload the same zero-byte "dummy.txt" or something, it should only be stored once in Artifactory.

I think Marc's suggestion is probably better, though!

Regards,

Hugh Greene, Senior Software Developer
Toshiba Medical Visualization Systems Europe, Ltd
Bonnington Bond, 2 Anderson Place, Edinburgh EH6 5NP, UK
Tel + 44 (0)131 472 4792 / Fax + 44 (0) 131 472 4799
http://www.tmvse.com / mailto:[hidden email]

DISCLAIMER
Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message.


-----Original Message-----
From: Raj [mailto:[hidden email]]
Sent: 26 April 2016 07:23
To: [hidden email]
Subject: Re: [Artifactory-users] Create Empty Folder

Hello Hugh,

Many Thanks for your reply.

I had proposed managing different binaries in corresponding repo's.

But team is very keen on managing all the binaries in single repo(Generic
repository)

So I need to work on a structure like this

Generic repository on a high level and multiple folders under that generic repository
          Folder1(Project1)-->Binaries
          Folder2(Project2)-->Binaries
          Folder3(Project3)-->Binaries
          Folder4(Project4)-->Binaries
          Folder5(Project5)-->Binaries

Now, as per Artifactory features I cant upload a folder until it is zipped, so i need to create an empty folder and then upload binaries.
unfortunately I cant create empty folders using Artifactory User Interface.

So I am exploring options using curl to create an empty folder in a generic artifactory repository via command line and no joy yet in doing so.

Can you please advice if there is an option to just create an empty folder in Generic Artifactory Repository.

I know shying away from the actual purpose of artifactory is not a good practice but sometimes have to try these kind of options :)

Cheers
Raj



--
View this message in context: http://forums.jfrog.org/Create-Empty-Folder-tp7580924p7580941.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users



If you reply to this email, your message will be added to the discussion below:
http://forums.jfrog.org/Create-Empty-Folder-tp7580924p7580959.html
To unsubscribe from Create Empty Folder, click here.
NAML
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Create Empty Folder

itamarb
Hi Raj,

You can use this REST api to create an empty folder in Artifactory.

Regards,
Itamar
Loading...