Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cbi-dev] Success building an Eclipse plugin project on ci.eclipse.org with Jenkinsfile

Hi all,

I'd like to report a success building Eclipse aCute (typical Eclipse plugins built with Tycho and shipped as a p2 repo published on download.eclipse.org) using a Jenkinsfile.

See https://ci.eclipse.org/acute/job/aCute/ . This is actually a *multi-branch pipeline* job, the job is configured to look at the branches and PRs on GitHub repository, and provision a job for each branch and PR reading the Jenkinsfile. It seems to automatically trigger a build whenever it notices a change (the job is configured to look for changes every 15 minutes, but the "Scan repository now" option allows to trigger a check on demand)
Here is the current Jenkinsfile for aCute: https://github.com/eclipse/aCute/blob/master/Jenkinsfile . While it looks easy, it was a bit painful to author; I have to admit I have some concerns with those Jenkins pipeline files which are extremely vague and hard to author and maintain; anyway this one works and may be used as example...

The only thing I didn't try to implement yet is the support for SonarQube analysis in the Jenkinsfile to get from time to time one build publishing reports there. It would probably be non-trivial to add in the Jenkinsfile as it would involve putting conditions in many place... If you feel interested to contribute that to aCute, that would be great, and it would be easy to reuse this result on many other Eclipse.org projects.

So if the trend is to recommend projects to use Jenkinsfile (which allow easier project portability between Jenkins instances), then I suggest that the CBI wiki puts a note about it and link to this working example.

Cheers,
--
Mickael Istria
Eclipse IDE developer, at Red Hat Developers community
Elected Committer Representative at the Eclipse Foundation board of directors

Back to the top