Follow the below guidelines to contribute to the project.
Make sure you have Maven and JDK installed, you can follow this tutorial for MacOS.
java -version # check if Java is installed
mvn −version # check if Maven is installed
Clone this repository. Navigate to the root directory of the repository.
git clone git@github.com:kobiton/jenkins-integration.git
cd jenkins-integration
mvn clean
: clean up the project by deleting thetarget/
foldermvn hpi:run
: run Jenkins with the plugin installed on port 8080 (to customize port, runmvn hpi:run -Djetty.port=8081
)mvn package
: build the plugin to.hpi
file attarget/
foldermvn compile
: compiles the source Java classes of the projectmvn verify
: run all testsmvn clean -P enable-jacoco test jacoco:report
: run all tests and generate test coverage report (at/target/site/jacoco/index.html
)
Follow these steps: mvn clean
→ mvn compile
→ mvn test
. Make sure you have /target/tmp
and /target/test-classes
folder.
Use import org.junit.Test;
instead of import org.junit.jupiter.api.Test;
.