Managing Jenkins build jobs using Eclipse
Can we a Jenkins job from Eclipse? Yes we can! So, let's how to do that.
Getting ready
- Go to
Help
|Install New Software...
:

- Add a site for
Mylyn
and click onNext >
:

- Review the items to be installed and click on
Next >
. - Accept the terms of the license agreement and then click on
Finish
. It will start installing theMylyn
package. - Once it is finished,
Restart Eclipse
.
How to do it...
Let's see how to trigger a Jenkins build from Eclipse.
- In the Windows menu, click on
Views
. - Select
Mylyn
and click onBuilds
. Then, clickOK
:

- In the
Builds
section, click on the build server link:

Eclipse in Java View
- Select
Hudson (supports Jenkins)
and click onNext >
:

- Provide the
Server
details. Provide theUser
andPassword
. Then, clickFinish
:

- Find the list of jobs in the
Build
section, shown as follows. Select any job and click onRun Build
to execute it from Eclipse:

- Try options as an exercise.