Skip to content

Upload file to JFrog Artifactory #4332

Answered by JuergenRB
shailesh1984 asked this question in Q&A
Discussion options

You must be logged in to vote

To upload a zip file to JFrog Artifactory using Cake, you can follow these steps:

  • Install JFrog CLI: Ensure you have the JFrog CLI installed on your build agent / machine. You can download it from the JFrog website or Chocolatey.
  • Create a Cake Script: Write a Cake script to handle the upload. Below is an example script
Task("Upload-Zip-To-Artifactory")
    .Does(() =>
    {
        var sourcePath = "./path/to/your/file.zip";
        var targetPath = "your-repo/your-path/file.zip";
        var artifactoryUrl = "https://your-artifactory-url/artifactory";
        var user = "your-username";
        var apiKey = "your-api-key";

        var arguments = $"rt u {sourcePath} {targetPath} --url={

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shailesh1984
Comment options

Answer selected by nils-a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants