nx remote cache for artifactory generic storage
npm install nx-remotecache-artifactory
npm install --save-dev nx-remotecache-artifactory
`
Use environment variables
| Parameter | Description | Environment Variable / .env | nx.json |
| ---------- | ------------------------------------------------------ | ------------------------------- | ----------- |
| URL | Artifactory URL to the folder path, ends with / | NXCACHE_ARTIFACTORY_URL | url |
| User | User name used for basic HTTP auth. | NXCACHE_ARTIFACTORY_USER | user |
| Secret | Base64 encoded password for basic HTTP auth | NXCACHE_ARTIFACTORY_SECRET | secret |
| Retention | Retention time in days | NXCACHE_ARTIFACTORY_RETENTION | retention |
Config in nx.json: change the name of the runner. Optionally, configure artifactory in options.
`json
{
"tasksRunnerOptions": {
"default": {
"runner": "nx-remotecache-artifactory",
"options": {
"url": "http://your.artifactory/group/cach-dir",
"user": "messi",
"secret": "Fa23izFo0xzpK;",
"retention": 15,
"cacheableOperations": ["bootstrap", "build", "test", "lint", "e2e"]
}
}
}
}
``