Usage
An Artifactory integration is mandatory in the integrations
section of the following native steps:
- DockerBuild
- DockerPush
- GradleBuild
- MvnBuild
- NpmBuild
- NpmPublish
- PromoteBuild
- PublishBuildInfo
- GoBuild
- GoPublishBinary
- GoPublishModule
An Artifactory integration must/may be used in the following resources:
mandatory | optional |
---|---|
Default Environment Variables
When you add this integration directly to a step, a set of environment variables is automatically made available.
Environment variable | Description |
---|---|
int_<integration_name>_url | URL of Artifactory |
int_<integration_name>_user | Username supplied in the integration |
int_<integration_name>_apikey | Access token supplied in the integration |
When you create an Aql, BuildInfo, or FileSpec resource with this integration, a set of environment variables is automatically made available in steps using that resource.
Environment variable | Description |
---|---|
res_<resource_name>_sourceArtifactory_url | URL of Artifactory |
res_<resource_name>_sourceArtifactory_user | Username supplied in the integration |
res_<resource_name>_sourceArtifactory_apikey | Access token supplied in the integration |
When you create an Image resource with this integration, a set of environment variables is automatically made available in steps using that resource.
Environment variable | Description |
---|---|
res_<resource_name>_registry_url | URL of Artifactory |
res_<resource_name>_registry_user | Username supplied in the integration |
res_<resource_name>_registry_apikey | Access token supplied in the integration |
When you create a RemoteFile resource with this integration, a set of environment variables is automatically made available in steps using that resource.
Environment variable | Description |
---|---|
res_<resource_name>_source_url | URL of Artifactory |
res_<resource_name>_source_user | Username supplied in the integration |
res_<resource_name>_source_apikey | Access token supplied in the integration |