Setting a tag to a deployed file?

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

Setting a tag to a deployed file?

jacpen
Hi everyone,

Is there a way to add certain tags to a file deployed to artifactory, so that if I search that certain tag the files deployed with that tag will show up? Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: Setting a tag to a deployed file?

shayb

Hi,


Sure, you can easily tag artifacts with properties, see here

Property/ies can be added to an artifact through both the REST-API and the Web-UI. You can even set the property during the deployment.


Here are some examples:

1. Deploying a file with 'curl' and setting a property during the deployment by using matrix params.

curl -uadmin:password -T file.jar 'http://localhost:8081/artifactory/libs-release-local/file.jar;property=propertyValue'


2. Setting a property to an existing file in Artifactory by using the Set Item Property REST-API query:

curl -uadmin:password 'http://localhost:8081/artifactory/api/storage/libs-release-local/file.jar?properties=os=windows'


You can later search these artifacts by properties with the property search REST-API query, property search Web-UI screen, and even by using AQL (Artifactory Query Language).


I hope that helps,

Shay


On Thu, Oct 15, 2015 at 12:56 AM, jacpen [via Artifactory] <[hidden email]> wrote:
Hi everyone,

Is there a way to add certain tags to a file deployed to artifactory, so that if I search that certain tag the files deployed with that tag will show up? Thank you.


If you reply to this email, your message will be added to the discussion below:
http://forums.jfrog.org/Setting-a-tag-to-a-deployed-file-tp7580519.html
To start a new topic under Artifactory - Users, email [hidden email]
To unsubscribe from Artifactory, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Setting a tag to a deployed file?

shayb
In reply to this post by jacpen
Small correction, the second query should be a PUT request. Here is the correct one:

On Wed, Nov 4, 2015 at 10:30 PM, Shay Bagants <[hidden email]> wrote:

Hi,


Sure, you can easily tag artifacts with properties, see here

Property/ies can be added to an artifact through both the REST-API and the Web-UI. You can even set the property during the deployment.


Here are some examples:

1. Deploying a file with 'curl' and setting a property during the deployment by using matrix params.

curl -uadmin:password -T file.jar 'http://localhost:8081/artifactory/libs-release-local/file.jar;property=propertyValue'


2. Setting a property to an existing file in Artifactory by using the Set Item Property REST-API query:

curl -uadmin:password 'http://localhost:8081/artifactory/api/storage/libs-release-local/file.jar?properties=os=windows'


You can later search these artifacts by properties with the property search REST-API query, property search Web-UI screen, and even by using AQL (Artifactory Query Language).


I hope that helps,

Shay


On Thu, Oct 15, 2015 at 12:56 AM, jacpen [via Artifactory] <[hidden email]> wrote:
Hi everyone,

Is there a way to add certain tags to a file deployed to artifactory, so that if I search that certain tag the files deployed with that tag will show up? Thank you.


If you reply to this email, your message will be added to the discussion below:
http://forums.jfrog.org/Setting-a-tag-to-a-deployed-file-tp7580519.html
To start a new topic under Artifactory - Users, email [hidden email]
To unsubscribe from Artifactory, click here.
NAML


Reply | Threaded
Open this post in threaded view
|

Re: Setting a tag to a deployed file?

josefhar
Hi all,

Not to hijack this question, but is build tagging a feature only available with the Pro license?

Regards,
Josef Harte,
Software Engineer,
IBM Ireland

IBM Ireland Product Distribution Limited registered in Ireland with number 92815. Registered office: Oldbrook House, 24-32 Pembroke Road, Ballsbridge, Dublin 4

------------------------------------------------------------------------------

_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users