Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Extending Jenkins

You're reading from   Extending Jenkins Get a complete walkthrough of the many interfaces available in Jenkins with the help of real-world examples to take you to the next level with Jenkins

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781785284243
Length 152 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Donald Simpson Donald Simpson
Author Profile Icon Donald Simpson
Donald Simpson
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Preparatory Steps FREE CHAPTER 2. Automating the Jenkins UI 3. Jenkins and the IDE 4. The API and the CLI 5. Extension Points 6. Developing Your Own Jenkins Plugin 7. Extending Jenkins Plugins 8. Testing and Debugging Jenkins Plugins 9. Putting Things Together Index

Groovy and Gradle as alternatives


If you are interested in Groovy, you can also use this language and a combination of other tools to create your own plugins—you don't have to stick to Java and Maven if you don't want to.

This page explains how to modify your project to use a build.gradle file in place of the Maven POM file that we used previously:

http://jenkins-ci.org/content/gradle-fy-your-jenkins-plugin-project

You can then execute commands such as gradle jpi, gradle check, gradle install, and so on to build and manage the plugin life cycle without Maven.

This CloudBees presentation illustrates the use of Groovy instead of Java for the plugin itself:

https://www.cloudbees.com/event/topic/groovy-way-write-jenkins-plugin

This is an increasingly popular approach due to the power and simplicity of Groovy. It also explains how you can replace Jelly with Groovy—using the same language (Gradle is based on Groovy, so… it's all Groovy!) throughout the development process makes a lot of sense.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image