Upload file to JFrog Artifactory #4332
Answered
by
JuergenRB
shailesh1984
asked this question in
Q&A
-
How to upload a zip file to JFrog Artifactory Using Cake in Task? |
Beta Was this translation helpful? Give feedback.
Answered by
JuergenRB
Sep 24, 2024
Replies: 1 comment 1 reply
-
To upload a zip file to JFrog Artifactory using Cake, you can follow these steps:
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={artifactoryUrl} --user={user} --access-token={apiKey}";
StartProcess("jfrog", new ProcessSettings { Arguments = arguments });
});
RunTarget("Upload-Zip-To-Artifactory"); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nils-a
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To upload a zip file to JFrog Artifactory using Cake, you can follow these steps: