The Jenkins Artifactory plugin supports running Maven 3 builds from freestyle projects by using a Maven 3 build step + a build environment section for the Artifactory Maven 3 integration (artifact and build information deployment). However, users are encouraged to configure the Artifactory integration using Jenkins Maven Project.
Field | Description |
---|---|
Artifactory Server | Artifactory server as defined in the Artifactory plugin configuration. The selected server will be used for artifacts and build info deployment. |
Target releases repository | Repository to deploy release artifacts to. Using the text mode will enable you to also use placeholders for environment variable which will be replaced with your environment value at build time. |
Target snapshot repository | Repository to deploy snapshots artifacts to. Using the text mode will enable you to also use placeholders for environment variable which will be replaced with your environment value at build time. |
Override default credentials | Override default credentials. |
Resolve artifacts from Artifactory | Check if you wish all dependency resolution to go through Artifactory. Using the text mode will enable you to also use placeholders for environment variable which will be replaced with your environment value at build time. Notice: this will override any external repository definition in Maven settings or POM files. |
Override build name | Override Artifactory default build name. |
Deploy artifacts to Artifactory | Check if you wish to publish produced build artifacts to Artifactory. |
Filter excluded artifacts from build info | Add the excluded files to the excludedArtifacts list and remove them from the artifacts list in the build info. |
Capture and publish build info | Publish build information to Artifactory. |
Include environment variables | Check if you wish to include all environment variables accessible by the builds process. Jenkins-specific EnvVars are always included. Note: including all environment variables as part of the captured build information may result in very large build objects and may slow down deployment. |
Record implicit project dependencies and build-time dependencies | Check if you wish build information published to Artifactory to include implicit project dependencies (for example, poms and parent poms of the project dependencies) as well as build-time dependencies (for example, maven plugins used during the build). |
Discard old builds from Artifactory (requires Artifactory Pro) | Automatically remove old builds stored in Artifactory according to Jenkins’s configured policy for discarding old builds. |