Appearance
Local Environment Configuration
- Gradle Environment Configuration
- NPM Environment Configuration
- Conan Environment Configuration
- PyPI Environment Configuration
- Go Environment Configuration
- Git LFS Environment Configuration
- Other package managements Environment Configuration
Jfrog requires authentication to resolve and upload artifacts. The recommendation is to set the credentials in system environment variable and reference that in your codespace. Below are guide on how to set this up with different package managements.
Gradle Environment Configuration
Windows - Using System Environment Variable
- Set ARTIFACTORY_USER=
<CDSID>@ford.com
- Set ARTIFACTORY_PASSWORD=
<TOKEN>
- Set GRADLE_OPTS=
-Dgradle.wrapperUser=%ARTIFACTORY_USER% -Dgradle.wrapperPassword=%ARTIFACTORY_PASSWORD%
- Example:
Figure 1a. JFrog ENV VAR (windows)
MacOS - Edit .zshrc
- export ARTIFACTORY_USER=
<CDSID>@ford.com
- export ARTIFACTORY_PASSWORD=
<TOKEN>
- export GRADLE_OPTS=
"-Dgradle.wrapperUser=$ARTIFACTORY_USER -Dgradle.wrapperPassword=$ARTIFACTORY_PASSWORD"
- Example:
Figure 1b. JFrog ENV VAR (MacOS)
IntelliJ-specific Configuration
- From IntelliJ IDE, Navigate to Help -> Edit Custom VM options, insert the following:
-Dgradle.wrapperUser=<CDSID>@ford.com -Dgradle.wrapperPassword=<TOKEN>
- Restart the IDE.
NPM Environment Configuration
Windows
- Please follow Configuring JFrog Artifactory Environment Variables.
MacOS
- Please follow Configuring Authentication for JFrog Artifactory.
Conan Environment Configuration
For your Conan command line client to work with this Conan repository, you first need to add the repository to your client configuration using the following command:
conan remote add conan-io https://jfrog.ford.com/artifactory/api/conan/conan-io
To login use the conan user command:
conan user -p <TOKEN> -r conan-io <CDSID>@ford.com
For more information on conan integrating with Jfrog, please visit Use Conan with Artifactory.
PyPI Environment Configuration
Due to its design, pip does not support reading credentials from a file. Credentials can be supplied as part of the URL. The password can be omitted (with the preceding colon), and in this case, the user will be prompted to enter credentials interactively.
- Example of ~/.pip/pip.conf:
[global]
index-url = https://<CDSID>@ford.com:<TOKEN>@jfrog.ford.com/artifactory/api/pypi/public-pypi-ford/simple
Windows - Using System Environment Variable
- Set PIP_INDEX_URL=
https://%ARTIFACTORY_USER%:%ARTIFACTORY_PASSWORD%@jfrog.ford.com/artifactory/api/pypi/public-pypi-ford/simple
- Example:
Figure 1a. JFrog ENV VAR (windows)
- Example:
MacOS - Edit .zshrc
- export PIP_INDEX_URL=
https://%ARTIFACTORY_USER%:%ARTIFACTORY_PASSWORD%@jfrog.ford.com/artifactory/api/pypi/public-pypi-ford/simple
For more information on conan integrating with Jfrog, please visit Use PyPI Credentials.
Go Environment Configuration
To configure your native Go client to work with Artifactory, set your default Artifactory Go repository by running the following command in the command line:
export GOPROXY="https://<CDSID>@ford.com:<TOKEN>@jfrog.ford.com/artifactory/api/go/public-go-golang-org-virtual"
For additional setup information, please refer to the official Go Modules from JFrog.
Git LFS Environment Configuration
The Git LFS client will ask for credentials (enter your Artifactory user name and token) for the Artifactory LFS repo when accessing it. To make the authentication process automatic you can use Git Credential Helpers to store these for you and have the Git LFS client authenticate automatically.
- Example of .lfsconfig:
[lfs]
url = "https://jfrog.ford.com/artifactory/api/lfs/<repository>"
Other package managements Environment Configuration
For more package managements configuration, please visit Jfrog Package Management.