Deploy folder content to Artifactory

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Deploy folder content to Artifactory

blkberry2001
It is possible to push the content of a folder instead of individual files to Artifactory?
For example instead of using a series of curl commands
curl -X PUT --data-binary  @myfileA.jar -u admin:password -i http://artifactory:8080/artifactory/simple/libs-release-local/myfileA.0.0.1.jar
...
curl -X PUT --data-binary  @myfileB.jar -u admin:password -i http://artifactory:8080/artifactory/simple/libs-release-local/myfileB.0.0.1.jar

Can we specify wild card or folder name instead?
curl -X PUT --data-binary  @myfolder -u admin:password -i http://artifactory:8080/artifactory/simple/libs-release-local/myfolder

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Deploy folder content to Artifactory

pscheir
This post was updated on .
Yes. Create an archive and use this method: http://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DeployArtifactsfromArchive

I use the following command line: curl --user u:p --header "X-Explode-Archive: true" --upload-file file.zip http://yyy:8081/artifactory/simple/TestRepository/file.zip

Best, Peter
Reply | Threaded
Open this post in threaded view
|

Re: Deploy folder content to Artifactory

blkberry2001
It is still an individual command which is no difference from what I have currently.
I guess this is the only way and there are no wild card or folder support to transfer more than one artifact each time.  Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Deploy folder content to Artifactory

aviv
Hi,

If you are a Linux user, you can use this script in order to recursively deploy a folder content.


HTH,
Aviv





On Thu, Oct 31, 2013 at 3:14 PM, blkberry2001 <[hidden email]> wrote:
It is still an individual command which is no difference from what I have
currently.
I guess this is the only way and there are no wild card or folder support to
transfer more than one artifact each time.  Thanks.



--
View this message in context: http://forums.jfrog.org/Deploy-folder-content-to-Artifactory-tp7579362p7579368.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|

Re: Deploy folder content to Artifactory

pscheir
This post was updated on .
In reply to this post by blkberry2001
I am not sure if I was able to convey the message.
You CAN transfer more than one artifact each time.
You need to ZIP them at the client side, upload the ZIP file to Artifactory and let Artifactory unpack the ZIP file.
This way you can upload multiple JAR files (from one folder) with one upload command.
You can do wildcards with the ZIP program on the client side.

Best, Peter


Reply | Threaded
Open this post in threaded view
|

Re: Deploy folder content to Artifactory

hello
This post was updated on .
In reply to this post by aviv
HI

This script https://github.com/JFrogDev/project-examples/blob/master/bash-example/deploy-file.sh

I've given the path name of my local file that is on my mac and artifactory url, but it says local file does not exists.. This is how I'm giving, what am I doing wrong?

./test.sh  /Users/coull/Desktop/tada.txt "http://artifactoryurl”

Thanks