Specialized Jenkins plugins for Affirm. Each subdirectory should be one plugin.
Refer to Plugin Tutorial and configure ~/.m2/settings.xml
.
To create a new plugin use
mvn -U hpi:create
To run tests and build a plugin package, use
mvn package
If you are impatient, use offline mode and skip tests:
mvn -o -DskipTests package
In IntelliJ
- Import
pom.xml
from the subdirectory you want to work on. - Create a new Run Configuration for Maven. Set "Command line:" to
hpi:run
. - In Project Settings > Project and Project Settings > Modules, ensure that the Project SDK and Language Level are both set to 1.8.
Use the Run Configuration to start a Jenkins server locally using "Run" or "Debug".
To make builds slightly faster, configure Maven to work offline in Preferences.
See Using JUnit.
TBD