0.1.1 • Published 1 month ago

nx-remotecache-artifactory v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 month ago

nx-remotecache-artifactory

A task runner for @nrwl/nx that uses an Artifactory generic storage as a remote cache. This enables all team members and CI servers to share a single cache. The concept and benefits of computation caching are explained in the NX documentation.

This package was built with nx-remotecache-custom 🙌

NOTE

Version 0.0.4 works with NX 16+, version 0.0.5, 0.1.0 works with NX 15-. Will sort this out later.

Setup

npm install --save-dev nx-remotecache-artifactory

Use environment variables

ParameterDescriptionEnvironment Variable / .envnx.json
URLArtifactory URL to the folder path, ends with /NXCACHE_ARTIFACTORY_URLurl
UserUser name used for basic HTTP auth.NXCACHE_ARTIFACTORY_USERuser
SecretBase64 encoded password for basic HTTP authNXCACHE_ARTIFACTORY_SECRETsecret
RetentionRetention time in daysNXCACHE_ARTIFACTORY_RETENTIONretention

Config in nx.json: change the name of the runner. Optionally, configure artifactory in options.

{
  "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"]
      }
    }
  }
}
0.1.1

1 month ago

0.1.0

1 month ago

0.0.6

1 month ago

0.0.3

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.2

1 year ago

0.0.1

1 year ago