@o3r/artifactory-tools 10.2.0-prerelease.9 → 10.3.0-prerelease.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/package.json +20 -20
package/README.md
CHANGED
|
@@ -5,12 +5,15 @@
|
|
|
5
5
|
|
|
6
6
|
## Description
|
|
7
7
|
|
|
8
|
+
[](https://www.npmjs.com/package/@o3r/artifactory-tools)
|
|
9
|
+
[](https://www.npmjs.com/package/@o3r/artifactory-tools)
|
|
10
|
+
|
|
8
11
|
This module provides various tools for the supported repository manager [JFrog](https://jfrog.com/artifactory/), including deleting old artifacts and deleting a specified amount of PR build artifacts.
|
|
9
12
|
|
|
10
13
|
## Artifact cleaner (JFrog)
|
|
11
14
|
|
|
12
|
-
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
|
|
13
|
-
and artifacts that have not been downloaded since the specified date. The search for the artifacts to delete is limited to the specified repositories.
|
|
15
|
+
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
|
|
16
|
+
and artifacts that have not been downloaded since the specified date. The search for the artifacts to delete is limited to the specified repositories.
|
|
14
17
|
|
|
15
18
|
Further information can be found in the JFrog documentation [here](https://jfrog.com/help/r/jfrog-rest-apis/artifacts-not-downloaded-since).
|
|
16
19
|
|
|
@@ -31,7 +34,7 @@ The required options include:
|
|
|
31
34
|
|----------------------------------------------------------|:-----:|----------------------|---------------------------------|------------------------------------------------------------------------------------------------|
|
|
32
35
|
| `--artifactory-url <artifactoryUrl>` <br> **(Required)** | | `string` | | JFrog artifactory URL |
|
|
33
36
|
| `--basicAuth <basicAuth>` <br> **(Required)** | `-b` | `string` | | Base64 encoding of username:password (password already encrypted from artifactory UI) |
|
|
34
|
-
| `--repositories <repositories>` <br> **(Required)** | `-r` | `string` | | Artifact repositories to clean up (comma separated) <br> ex: `'repo1,repo2'` |
|
|
37
|
+
| `--repositories <repositories>` <br> **(Required)** | `-r` | `string` | | Artifact repositories to clean up (comma separated) <br> ex: `'repo1,repo2'` |
|
|
35
38
|
| `--dry-run <dryRun>` | | `boolean` | `false` | List all files that would be deleted without actually deleting them |
|
|
36
39
|
| `--duration-kept <durationKept>` | `-d` | `number` or `string` | `604800000` <br> (i.e., 7 days) | All artifacts older than this value (in ms) or not downloaded since this value will be deleted |
|
|
37
40
|
| `--type-filter <typeFilter>` | `-t` | `string` | `'tgz,json'` | List of artifact types that should be deleted (comma separated) <br> ex: `'jar,tgz'` |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/artifactory-tools",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.0-prerelease.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,41 +26,41 @@
|
|
|
26
26
|
"commander": "^12.0.0",
|
|
27
27
|
"fs-extra": "^11.0.0",
|
|
28
28
|
"request": "^2.88.0",
|
|
29
|
-
"tslib": "^2.
|
|
29
|
+
"tslib": "^2.6.2",
|
|
30
30
|
"winston": "^3.8.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@angular-devkit/core": "~17.
|
|
34
|
-
"@angular-devkit/schematics": "~17.
|
|
35
|
-
"@angular-eslint/eslint-plugin": "~17.
|
|
33
|
+
"@angular-devkit/core": "~17.3.0",
|
|
34
|
+
"@angular-devkit/schematics": "~17.3.0",
|
|
35
|
+
"@angular-eslint/eslint-plugin": "~17.3.0",
|
|
36
36
|
"@babel/core": "~7.24.0",
|
|
37
|
-
"@babel/preset-typescript": "~7.
|
|
37
|
+
"@babel/preset-typescript": "~7.24.0",
|
|
38
38
|
"@compodoc/compodoc": "^1.1.19",
|
|
39
|
-
"@nx/eslint-plugin": "~18.0
|
|
40
|
-
"@nx/jest": "~18.0
|
|
41
|
-
"@o3r/build-helpers": "^10.
|
|
42
|
-
"@o3r/eslint-plugin": "^10.
|
|
39
|
+
"@nx/eslint-plugin": "~18.2.0",
|
|
40
|
+
"@nx/jest": "~18.2.0",
|
|
41
|
+
"@o3r/build-helpers": "^10.3.0-prerelease.0",
|
|
42
|
+
"@o3r/eslint-plugin": "^10.3.0-prerelease.0",
|
|
43
43
|
"@stylistic/eslint-plugin-ts": "^1.5.4",
|
|
44
44
|
"@types/fs-extra": "^11.0.0",
|
|
45
45
|
"@types/jest": "~29.5.2",
|
|
46
46
|
"@types/node": "^20.0.0",
|
|
47
47
|
"@types/request": "^2.48.7",
|
|
48
48
|
"@types/request-promise-native": "^1.0.18",
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^7.0
|
|
50
|
-
"@typescript-eslint/parser": "^7.0
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
50
|
+
"@typescript-eslint/parser": "^7.2.0",
|
|
51
51
|
"cpy-cli": "^5.0.0",
|
|
52
|
-
"eslint": "^8.
|
|
53
|
-
"eslint-import-resolver-node": "^0.3.
|
|
52
|
+
"eslint": "^8.57.0",
|
|
53
|
+
"eslint-import-resolver-node": "^0.3.9",
|
|
54
54
|
"eslint-plugin-jest": "~27.9.0",
|
|
55
|
-
"eslint-plugin-jsdoc": "~48.2.
|
|
55
|
+
"eslint-plugin-jsdoc": "~48.2.1",
|
|
56
56
|
"eslint-plugin-prefer-arrow": "~1.2.3",
|
|
57
|
-
"eslint-plugin-unicorn": "^51.0.
|
|
57
|
+
"eslint-plugin-unicorn": "^51.0.1",
|
|
58
58
|
"jest": "~29.7.0",
|
|
59
59
|
"jest-junit": "~16.0.0",
|
|
60
|
-
"nx": "~18.0
|
|
61
|
-
"ts-jest": "~29.1.
|
|
62
|
-
"ts-node": "~10.9.
|
|
63
|
-
"typescript": "~5.
|
|
60
|
+
"nx": "~18.2.0",
|
|
61
|
+
"ts-jest": "~29.1.2",
|
|
62
|
+
"ts-node": "~10.9.2",
|
|
63
|
+
"typescript": "~5.4.2"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": ">=16.0.0"
|