11.3.0 • Published 2 months ago

@o3r/artifactory-tools v11.3.0

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
2 months ago

Description

Stable Version Bundle Size

This module provides various tools for the supported repository manager JFrog, including deleting old artifacts and deleting a specified amount of PR build artifacts.

Artifact cleaner (JFrog)

Cleans old artifacts from JFrog artifactory repositories. Based on the provided (or default) milliseconds value, this script will delete artifacts created before the specified date and artifacts that have not been downloaded since the specified date. The search for the artifacts to delete is limited to the specified repositories.

Further information can be found in the JFrog documentation here.

Usage

o3r-artifact-cleaner [options]

The required options include:

  • the JFrog artifactory URL (--artifactory-url)
  • the authentication (--basicAuth <basicAuth>)
  • the artifact repositories to clean up (--repositories <repositories>)

Options

OptionAliasValue TypeDefault ValueDescription
--artifactory-url <artifactoryUrl> (Required)stringJFrog artifactory URL
--basicAuth <basicAuth> (Required)-bstringBase64 encoding of username:password (password already encrypted from artifactory UI)
--repositories <repositories> (Required)-rstringArtifact repositories to clean up (comma separated) ex: 'repo1,repo2'
--dry-run <dryRun>booleanfalseList all files that would be deleted without actually deleting them
--duration-kept <durationKept>-dnumber or string604800000 (i.e., 7 days)All artifacts older than this value (in ms) or not downloaded since this value will be deleted
--type-filter <typeFilter>-tstring'tgz,json'List of artifact types that should be deleted (comma separated) ex: 'jar,tgz'
--help-hOutput usage information

Example

yarn o3r-artifact-cleaner --artifactory-url "https://jfrog.io/repoName" -b thisismybase64tokenwithuserandencryptedpassword

PR Artifact cleaner (JFrog)

Cleans old PR artifacts from JFrog by using the build version that is present in the path. If the build version is not present in the path, this tool cannot be used. Based on the provided (or default) days value, this script will delete artifacts created before the specified date, within the provided repository matching the provided path.

Further information can be found in the JFrog documentation here.

Usage

o3r-pr-artifact-cleaner [options]

The required options include:

  • the JFrog artifactory URL (--artifactory-url <artifactoryUrl>)
  • a method of authentication (--api-key <apiKey> or --basicAuth <base64>)
  • the artifact repository to clean up (--repository <repository>)
  • the artifact paths to clean up (--path <path>)

Options

OptionAliasValue TypeDefault ValueDescription
--artifactory-url <artifactoryUrl> (Required)-ustringJFrog artifactory URL
--path <path> (Required)-pstringArtifact paths to clean up (using matcher from AQL language). Be careful not to include release artifacts in the path. ex: sample/path/*-PR-*
--repository <repository> (Required)-rstringArtifact repository to clean up
--api-key <apiKey>-astringArtifactory API key of the user that can be used to log in
--basicAuth <base64>-bstringBase64 encoding of username:password (password already encrypted from artifactory UI)
--dry-run <dryRun>booleanfalseList all files that would be deleted without actually deleting them
--duration-kept <durationKept>-dnumber1All artifacts older than this value (in days) will be deleted
--pr-builds <prBuilds>-nnumber1Number of PR build artifacts that will be kept
--verbose-vDisplay the executed AQL query
--help-hOutput usage information

Example

yarn o3r-pr-artifact-cleaner --artifactory-url "https://jfrog.io/repoName" -b thisismybase64tokenwithuserandencryptedpassword
11.4.0-rc.3

2 months ago

11.4.0-rc.2

2 months ago

11.4.0-rc.1

2 months ago

11.4.0-rc.0

2 months ago

11.3.0

2 months ago

10.2.20

2 months ago

11.0.9

2 months ago

11.2.5

2 months ago

11.2.6

2 months ago

11.3.0-rc.8

2 months ago

11.1.6

2 months ago

10.4.12

2 months ago

11.2.4

2 months ago

11.0.7

3 months ago

10.2.18

3 months ago

10.2.19

3 months ago

11.0.8

3 months ago

11.2.2

3 months ago

11.2.0

3 months ago

11.1.4

3 months ago

10.3.13

3 months ago

11.3.0-rc.3

3 months ago

11.3.0-rc.4

3 months ago

11.3.0-rc.5

2 months ago

11.3.0-rc.6

2 months ago

11.3.0-rc.0

3 months ago

11.3.0-rc.1

3 months ago

11.3.0-rc.2

3 months ago

11.3.0-rc.7

2 months ago

10.4.11

3 months ago

10.4.10

3 months ago

11.1.3

3 months ago

11.2.0-rc.4

3 months ago

11.1.2

4 months ago

11.2.0-rc.3

4 months ago

11.2.0-rc.2

4 months ago

11.1.1

4 months ago

11.2.0-rc.1

4 months ago

11.2.0-rc.0

4 months ago

11.0.6

4 months ago

10.4.9

4 months ago

11.1.0

4 months ago

11.1.0-rc.8

4 months ago

10.2.14

7 months ago

10.2.15

6 months ago

10.2.12

7 months ago

10.2.13

7 months ago

10.2.10

7 months ago

10.2.11

7 months ago

11.0.4

4 months ago

10.2.16

6 months ago

10.2.17

6 months ago

11.0.2

5 months ago

11.0.0

5 months ago

11.0.1

5 months ago

10.4.1

6 months ago

10.4.2

6 months ago

10.4.3

6 months ago

10.4.4

6 months ago

10.4.5

5 months ago

10.4.7

5 months ago

10.4.8

5 months ago

11.0.0-rc.10

5 months ago

10.3.3

7 months ago

10.3.6

7 months ago

10.3.7

6 months ago

11.0.0-rc.11

5 months ago

10.3.8

6 months ago

10.3.0

7 months ago

10.3.0-rc.7

7 months ago

10.3.0-rc.6

7 months ago

11.1.0-rc.3

5 months ago

11.1.0-rc.4

5 months ago

11.1.0-rc.1

5 months ago

11.1.0-rc.2

5 months ago

11.1.0-rc.0

5 months ago

11.1.0-rc.7

4 months ago

11.1.0-rc.5

5 months ago

11.1.0-rc.6

4 months ago

11.0.0-rc.0

6 months ago

11.0.0-rc.2

6 months ago

10.3.10

6 months ago

10.3.11

5 months ago

10.4.0-rc.7

6 months ago

10.4.0-rc.8

6 months ago

10.4.0-rc.9

6 months ago

10.4.0-rc.3

7 months ago

10.4.0-rc.4

7 months ago

10.4.0-rc.5

7 months ago

10.4.0-rc.6

6 months ago

10.4.0-rc.0

7 months ago

10.4.0-rc.1

7 months ago

10.4.0-rc.2

7 months ago

11.0.0-rc.4

6 months ago

11.0.0-rc.5

6 months ago

11.0.0-rc.6

5 months ago

11.0.0-rc.7

5 months ago

11.0.0-rc.8

5 months ago

11.0.0-rc.9

5 months ago

10.2.8

7 months ago

10.2.9

7 months ago

10.3.0-rc.5

7 months ago

10.3.0-rc.4

7 months ago

11.0.0-next.2

7 months ago

10.3.0-rc.3

7 months ago

10.3.0-rc.2

8 months ago

10.3.0-rc.1

8 months ago

10.2.4

8 months ago

10.3.0-rc.0

8 months ago

11.0.0-next.1

8 months ago

10.1.11

8 months ago

10.1.10

8 months ago

10.2.3

8 months ago

10.2.0

8 months ago

10.2.1

8 months ago

10.2.2

8 months ago

10.2.0-rc.5

8 months ago

10.2.0-rc.4

8 months ago

10.1.8

8 months ago

10.1.6

8 months ago

10.1.4

9 months ago

10.1.5

9 months ago

10.2.0-rc.3

9 months ago

10.2.0-rc.2

9 months ago

10.1.2

9 months ago

10.1.3

9 months ago

10.2.0-rc.1

9 months ago

10.2.0-rc.0

9 months ago

10.1.1

9 months ago

10.1.0

9 months ago

10.1.0-rc.10

9 months ago

10.1.0-rc.11

9 months ago

10.0.15

9 months ago

10.0.14

9 months ago

10.1.0-rc.8

9 months ago

10.1.0-rc.9

9 months ago

10.1.0-rc.7

9 months ago

10.0.13

9 months ago

10.0.11

9 months ago

10.1.0-rc.4

9 months ago

10.1.0-rc.5

9 months ago

10.1.0-rc.6

9 months ago

10.2.0-prerelease.9

10 months ago

10.2.0-prerelease.8

10 months ago

10.1.0-rc.3

10 months ago

10.0.10

10 months ago

10.2.0-prerelease.7

10 months ago

10.2.0-prerelease.6

10 months ago

10.1.0-rc.2

10 months ago

10.2.0-prerelease.3

10 months ago

10.2.0-prerelease.2

10 months ago

10.2.0-prerelease.5

10 months ago

10.2.0-prerelease.4

10 months ago

10.0.8

10 months ago

10.1.0-rc.0

10 months ago

10.1.0-rc.1

10 months ago

10.2.0-prerelease.0

10 months ago

10.0.6

10 months ago

10.0.7

10 months ago

10.0.5

10 months ago

10.0.3

10 months ago

10.0.4

10 months ago

10.0.0

10 months ago

10.0.1

10 months ago

10.0.0-rc.13

10 months ago

10.0.0-rc.9

10 months ago

10.0.0-rc.12

10 months ago

10.0.0-rc.11

10 months ago

10.0.0-rc.10

10 months ago

10.1.0-prerelease.9

10 months ago

10.1.0-prerelease.8

10 months ago

10.1.0-prerelease.7

10 months ago

10.1.0-prerelease.6

10 months ago

10.1.0-prerelease.5

10 months ago

10.0.0-rc.4

10 months ago

10.0.0-rc.6

10 months ago

10.0.0-rc.5

10 months ago

10.0.0-rc.8

10 months ago

10.0.0-rc.7

10 months ago

10.1.0-prerelease.0

10 months ago

10.1.0-prerelease.4

10 months ago

10.1.0-prerelease.3

10 months ago

10.1.0-prerelease.2

10 months ago

10.1.0-prerelease.1

10 months ago

10.0.0-rc.3

10 months ago

10.0.0-rc.0

10 months ago

10.0.0-rc.2

10 months ago

10.0.0-rc.1

10 months ago

10.0.0-prerelease.9

11 months ago

10.0.0-prerelease.8

11 months ago

10.0.0-prerelease.5

11 months ago

10.0.0-prerelease.7

11 months ago

10.0.0-prerelease.6

11 months ago

10.0.0-prerelease.4

11 months ago

10.0.0-prerelease.1

11 months ago

10.0.0-prerelease.3

11 months ago

10.0.0-prerelease.2

11 months ago

10.0.0-alpha.6

11 months ago

10.0.0-alpha.4

11 months ago

10.0.0-alpha.3

11 months ago

11.0.0-next.0

12 months ago

10.0.0-alpha.2

12 months ago

10.0.0-alpha.1

12 months ago

10.0.0-next.48

1 year ago

10.0.0-next.47

1 year ago

10.0.0-next.46

1 year ago

10.0.0-next.29

1 year ago

10.0.0-next.27

1 year ago

10.0.0-next.24

1 year ago

10.0.0-next.23

1 year ago

10.0.0-next.22

1 year ago

10.0.0-next.21

1 year ago

10.0.0-next.20

1 year ago

10.0.0-next.19

1 year ago

10.0.0-next.18

1 year ago

10.0.0-next.17

1 year ago

10.0.0-next.16

1 year ago

10.0.0-next.14

1 year ago

10.0.0-next.13

1 year ago