Ivan
Ivan

Reputation: 3184

Upload a custom file to Artifactory Pro with custom properties and buildinfo in script

We need to upload a custom file to Artifactory Pro in our build scripts (Linux & Windows) with the following requerements:

I've tried to use Artifact Maven plugin but it doesn't allow to upload custom file, only maven project build results

I suppose it may be done using RestAPI or cli tool, but I didn't find how.

Any ideas? (with working examples please)

Upvotes: 0

Views: 472

Answers (1)

Ariel
Ariel

Reputation: 3506

Have you tried using JFrog CLI?

  • target is a Maven repo

No problem! with JFrog CLI you can upload to whatever repository you want

  • groupId, artifactId and version are known

Great, use it as the path of deployment.

  • pom should be generated (another maven projects will access to this artifact)

The CLI won't do that but you can use this user plugin to do that.

  • custom properties should be defined (important!)

Sure.

  • generate build-info is nice to have

Hell yhee! :)

Here are the download link and the manual: https://www.jfrog.com/confluence/display/CLI/JFrog+CLI https://www.jfrog.com/getcli/

Upvotes: 6

Related Questions