Jfrog Artifactory Plugin For Jenkins

Jfrog Artifactory Plugin For Jenkins is one of the best software, you can download for free. If you are looking for a perfect software to store and distribute your project files and archives, you should avoid Jfrog Artifactory Plugin For Jenkins because it will not to help you in any way.

The Jfrog Artifactory Plugin for Jenkins is a pure java implementation for instructions and download of artifacts from JFrog Artifactory. It was developed with Java 7 and Jenkins 1.555, but you can use it with other versions as well.

Artifactory is a Maven repository, or said another way, a place to download and store your dependencies. Artifactory uses Mavens dependency mechanism so that you can get your specific version of an artifact instead of relying on the latest version. Artifactory also provides fast and intelligent search, making it easy to find the exact artifact you need

Jfrog Artifactory Plugin For Jenkins

General

The plugin integrates Jenkins and Artifactory to publish, resolve, promote and release traceable build artifacts. For more information, including the release notes, please visit the JFrog Artifactory Plugin documentation

How to Contribute

JFrog welcomes community contribution through pull requests.

Important:

The plugin code is stored in two GitHub repositories: https://github.com/jfrog/jenkins-artifactory-plugin and https://github.com/jenkinsci/artifactory-plugin

Please make sure to submit pull requests to https://github.com/jfrog/jenkins-artifactory-plugin only.

How to build the plugin code

To build the plugin, please use Maven 3.6.1 or above, with JDK 8, and run:

> mvn clean install

Tests

Unit tests

To run unit tests execute the following command:

> mvn clean test

Integration tests

Running integration tests

Before running the integration tests, set the following environment variables. See here how to generate a Platform Admin Token.

JENKINS_PLATFORM_URL
JENKINS_PLATFORM_USERNAME
JENKINS_PLATFORM_ADMIN_TOKEN
JENKINS_ARTIFACTORY_DOCKER_PUSH_DOMAIN (For example, server-docker-local.jfrog.io)
JENKINS_ARTIFACTORY_DOCKER_PULL_DOMAIN (For example, server-docker-remote.jfrog.io)
JENKINS_ARTIFACTORY_DOCKER_PUSH_REPO (For example, docker-local)
JENKINS_ARTIFACTORY_DOCKER_PULL_REPO (For example, docker-remote)
JENKINS_ARTIFACTORY_DOCKER_HOST – Optional address of the docker daemon (For example, tcp://127.0.0.1:1234)
JENKINS_PIP_ENV_INIT – Optional command to activate pip virtual-environment for tests execution (For example, source /Users/user/jenkins-venv/bin/activate)
MAVEN_HOME – The local maven installation path.
GRADLE_HOME – The local gradle installation path.

To disable build scan with Xray integration tests, set JENKINS_XRAY_TEST_ENABLE to false. Go tests require Go v1.14 or above.

Run the integration tests.

> mvn clean verify -DskipITs=false

Integration tests results and progress

The tests results are printed to the console (standard output) when the tests finish. Since JUnit however does not indicate which tests are currently running, a file named tests.log is created in the current directory, which logs the tests progress.

Leave a Comment