Creating a Jenkins plugin skeleton
Prior to launching the IntelliJ IDE and beginning our plugin development, we will need to generate a plugin skeleton. The Jenkins development community has graciously provided this skeleton framework as a way to encourage developers to extend the Jenkins subsystems. The skeleton provides a foundational development structure for developing Jenkins plugins.
Note
The skeleton framework is simply a set of files, and folders, that contain the source code for a basic hello world plugin. When developing a plugin from scratch this handy framework gives us a great foundational layer that we can start from.
To generate the Jenkins plugin skeleton we will need to command Maven to create it.. The creation of the skeleton structure is accomplished through the hpi:create
goal on the command line. Let's begin by creating our obligatory Hello Jenkins plugin. To do this we will need to execute the command shown below:
#>mvn hpi:create
Once the command has been inputted...