Jenkins plugin to have a bird's eye view of your continuous deployment pipeline.
- Сlone repository on your Computer, go there and run
bash ./gradlew :pl:build
- Then run
bash ./gradlew :pl:server
. By default Jetty will run on http://localhost:8080/.
- Install in IDE lombok.
- From Eclipse Marketplace install Gradle IDE.
- Before adding project into IDE go to deployment-sphere-plugin and run
bash ./gradlew :pl:build
. - In IDE go to Import -> Gradle-> Gradle Project select directory with project and click Build Model. After that just add it into IDE.
- Go to Jenkins dashboard. On the menu to the left, pick up
Manage Jenkins
option. - Select
Manage plugins
. - Goto
Advanced
tab and useUpload plugin
feature.
- On Jenkins dashboard create New Item "Build".
- Tick "This build is parameterized" with any name. As an example use "APP_PARAMETER".
- Add post-build Action "Collect Build Metadata" and "Application Name" put "app-name" in "Build version Pattern" put "$APP_PARAMETER.{v}" (part of pattern should match name, chosen on previous step)
- Create New Item "Deploy".
- Add post-build Action "Collect Deploy Metadata" in "Application name to deploy" put "app-name"
To build the plugin from source:
./gradlew :pl:build
To run Jenkins and test JPI:
./gradlew :pl:server
Build job-dsl.hpi to be installed in Jenkins:
./gradlew :pl:jpi