M:

Thanks – I’ll give the scripting a try.

David

From: mdeboeck [via Artifactory] 
[mailto:[email protected]]
Sent: Monday, January 25, 2016 4:43 AM
To: Ward, David (Proxy) <[email protected]>
Subject: Re: Snapshots for a generic repository

We have some custom layouts configured, but I also did not succeed in cleaning 
up old artifacts through Artifactory. So I ended up scripting it through the 
AQL layout (https://github.com/JFrogDev/artifactory-scripts/tree/master/cleanup 
contains an example that you can use to start with).

We are publishing to Artifactory using Ivy, and the Artifactory layout has been 
setup to reflect the way we publish.
Maybe it is because our customized layouts don't use the fields [folderItegRev] 
and [fileItegRev] ?
To be honest, if the custom layouts do not help with auto-cleaning, I don't 
understand the added value of the custom layouts: it is perfectly possible to 
possible an artifact using a different layout than its repository layout, and 
it is also possible to search for artifacts in such repositories. So what else 
can they be used for ?
Marc


2016-01-22 16:43 GMT+01:00 David Ward [via Artifactory] <[hidden 
email]</user/SendEmail.jtp?type=node&node=7580760&i=0>>:
H:

Thanks for the pointers.

I created a new layout (tarball-default) by duplicating the simple-default 
layout. But, it still didn’t give me any configuration like the maven layout 
has for Max. Unique Snapshots, etc.

I then created a new layout by duplicating maven-default. But, still no 
configuration to limit the number of snapshots, etc.

So, I’m pretty lost here. I just want Artifactory to give me the capabilities 
that it has for its other layouts – e.g., only keep the last 2 versions of an 
integration build – but that doesn’t seem to be possible without writing our 
own scripts.

David


From: HughG_TMVSE [via Artifactory] [mailto:[hidden 
email]</user/SendEmail.jtp?type=node&node=7580760&i=1>[hidden 
email]<http://user/SendEmail.jtp?type=node&node=7580758&i=0>]
Sent: Friday, January 22, 2016 4:49 AM

To: Ward, David (Proxy) <[hidden 
email]<http://user/SendEmail.jtp?type=node&node=7580758&i=1>>
Subject: Re: Snapshots for a generic repository

Hi David,

I think Artifactory does support this for any repo, as long as it follows one 
of the repo layouts in your configuration.  You can only add non-standard 
layouts in the Pro version (not OSS), but you can assign any layout to a 
Generic repo, I think.  If your current set of files doesn't match one of the 
existing layouts, perhaps you could move them around with a one-off script?

https://www.jfrog.com/confluence/display/RTF/Repository+Layouts

Hope that helps,
Hugh.
________________________________
From: David Ward [[hidden 
email]<http://user/SendEmail.jtp?type=node&node=7580755&i=0>]
Sent: Friday, January 22, 2016 02:25
To: [hidden email]<http://user/SendEmail.jtp?type=node&node=7580755&i=1>
Subject: Re: [Artifactory-users] Snapshots for a generic repository
D:

I tried using a maven repository and it doesn’t know that the tarballs are 
snapshots so it lets you store as many as you want. I guess we could fudge a 
maven environment and generate the tarballs as snapshots, but that’s silly work.

I know I can do the versioning with a script. But, since artifactory already 
has a similar approach for maven/gradle/ivy, it would seem symmetrical to have 
a similar policy for generic repositories. Plus, we are actually deploying our 
artifacts from bamboo using the default artifactory plugin so we would have to 
reproduce that.

It just seems this is something that artifactory should support.

Thanks.

David

From: dave_p [via Artifactory] [mailto:[hidden 
email]</user/SendEmail.jtp?type=node&node=7580760&i=2>[hidden 
email]<http://UrlBlockedError.aspx>]
Sent: Thursday, January 21, 2016 7:17 PM
To: Ward, David (Proxy) <[hidden email]<http://UrlBlockedError.aspx>>
Subject: Re: Snapshots for a generic repository

I had a similar problem with these OVA appliances (versioned releases, not 
snapshots) one of our teams produces nightly - ended up “fixing” it by writing 
a python script that uses the artifactory API to list the contents of a 
repository, sort them by date, and delete the oldest ones. (We retain 7, but 
the idea is the same.) Then added it to crontab.

Interested in knowing if there’s a better way.

Theoretically, I suppose you could use a maven repository to store tarballs. 
For some reason, I’ve got a maven repo with a bunch of ISOs in it. :-D

-Dave P.

On Jan 21, 2016, at 1:49 PM, David Ward <[hidden 
email]<http://UrlBlockedError.aspx>> wrote:

> We currently store tarballs of our system in artifactory after each build. We
> do not use maven, gradle, etc., so we store them in a generic repository.
>
> The problem that we are having is that the repository keeps growing and
> growing because each build is a separate artifact; however, old versions of
> the build are not really useful.
>
> For maven/gradle repositories, we could configure the repository as a
> snapshot repository and limit versions to a small number.
>
> Is there some way to limit the number of artifacts in a generic repository
> in a similar manner? For example, only allow 5 artifacts (our build
> tarballs) in the repository. If you put in more than five, the oldest
> artifact will be deleted.
>
> Thanks.
>
> David
>
>
>
>
> --
> View this message in context: 
> http://forums.jfrog.org/Snapshots-for-a-generic-repository-tp7580751.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Artifactory-users mailing list
> [hidden email]<http://UrlBlockedError.aspx>
> https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Artifactory-users mailing list
[hidden email]<http://UrlBlockedError.aspx>
https://lists.sourceforge.net/lists/listinfo/artifactory-users
________________________________
If you reply to this email, your message will be added to the discussion below:
http://forums.jfrog.org/Snapshots-for-a-generic-repository-tp7580751p7580753.html
To unsubscribe from Snapshots for a generic repository, click 
here<http://UrlBlockedError.aspx>.
NAML<http://forums.jfrog.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
CONFIDENTIALITY NOTICE: This e-mail and any attachments are for the exclusive 
and confidential use of the intended recipient. If you received this in error, 
please do not read, distribute, or take action in reliance upon this message. 
Instead, please notify us immediately by return e-mail and promptly delete this 
message and its attachments from your computer system. We do not waive 
attorney-client or work product privilege by the transmission of this message. 
Act 5.6.102a.c
________________________________
View this message in context: RE: Snapshots for a generic 
repository<http://forums.jfrog.org/Snapshots-for-a-generic-repository-tp7580751p7580754.html>
Sent from the Artifactory - Users mailing list 
archive<http://forums.jfrog.org/Artifactory-Users-f2377369.html> at Nabble.com.

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Artifactory-users mailing list
[hidden email]<http://user/SendEmail.jtp?type=node&node=7580755&i=2>
https://lists.sourceforge.net/lists/listinfo/artifactory-users
________________________________
If you reply to this email, your message will be added to the discussion below:
http://forums.jfrog.org/Snapshots-for-a-generic-repository-tp7580751p7580755.html
To unsubscribe from Snapshots for a generic repository, click here.
NAML<http://forums.jfrog.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
CONFIDENTIALITY NOTICE: This e-mail and any attachments are for the exclusive 
and confidential use of the intended recipient. If you received this in error, 
please do not read, distribute, or take action in reliance upon this message. 
Instead, please notify us immediately by return e-mail and promptly delete this 
message and its attachments from your computer system. We do not waive 
attorney-client or work product privilege by the transmission of this message.
________________________________
If you reply to this email, your message will be added to the discussion below:
http://forums.jfrog.org/Snapshots-for-a-generic-repository-tp7580751p7580758.html
To start a new topic under Artifactory - Users, email [hidden 
email]</user/SendEmail.jtp?type=node&node=7580760&i=3>
To unsubscribe from Artifactory, click here.
NAML<http://forums.jfrog.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>


________________________________
If you reply to this email, your message will be added to the discussion below:
http://forums.jfrog.org/Snapshots-for-a-generic-repository-tp7580751p7580760.html
To unsubscribe from Snapshots for a generic repository, click 
here<http://forums.jfrog.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7580751&code=ZGF2aWQud2FyZEB0aGFsZXNkc2kuY29tfDc1ODA3NTF8LTIwOTE3NjI0NTg=>.
NAML<http://forums.jfrog.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
CONFIDENTIALITY NOTICE: This e-mail and any attachments are for the exclusive 
and confidential use of the intended recipient. If you received this in error, 
please do not read, distribute, or take action in reliance upon this message. 
Instead, please notify us immediately by return e-mail and promptly delete this 
message and its attachments from your computer system. We do not waive 
attorney-client or work product privilege by the transmission of this message.




--
View this message in context: 
http://forums.jfrog.org/Snapshots-for-a-generic-repository-tp7580751p7580761.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to