Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.77 KB

README.md

File metadata and controls

53 lines (36 loc) · 1.77 KB

gradle-release-example

Build Status codecov.io

Description

Gradle release example for CI and CD including integration with sonar, versioning and changelog. This is used for the gradle webinars.

Technologies

Java Gradle

How to deploy

The Jenkinsfile and JenkinsfileDeploy store the gradle activities in the CI and CD pipeline. All the modifications are done via Pull Requests, see the Contribution Guidelines for further information.

Build

gradle clean build

Test

gradle clean build

Sonar

gradle sonarqube

Release

gradle clean release -Prelease.useAutomaticVersion=true

CI and CD

We use Travis CI as automation server and Codecov for test coverage:

  • On Push to any branch, to build the source code
  • On Pull Requests to master, to build, test and execute the sonar analysis and upload the SNAPSHOT library to Nexus
  • On Push to release branch (from master), to prepare and perform the release using gradle-release plugin automatically generating the changelog

How to contribute

Features and bug fixes are more than welcome. They must be linked to an issue, so the first step before contributing is the creation of a GitHub issue.

External resources

License

Apache 2.0