- The plugin code is stored in two GitHub repositories: https://github.com/jfrog/jenkins-jfrog-plugin and https://github.com/jenkinsci/jfrog-plugin. Please make sure to submit pull requests to https://github.com/jfrog/jenkins-jfrog-plugin only.
- If the existing tests do not already cover your changes, please add tests.
Clone the sources and CD to the root directory of the project:
git clone https://github.com/jfrog/jenkins-jfrog-plugin.git
cd jenkins-jfrog-plugin
Build the sources as follows:
mvn clean package
Start a local Jenkins instance with the plugin installed by running the following command:
mvn hpi:run
To run unit tests execute the following command:
mvn clean test
Before running the integration tests, set the following environment variables.
JFROG_URL
JFROG_USERNAME
JFROG_PASSWORD
JFROG_ADMIN_TOKEN
Run the integration tests.
mvn clean verify -DskipITs=false