Skip to content

Commit

Permalink
[#59] Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Sprey committed Apr 15, 2021
1 parent c4f7fd1 commit 8d31bf4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,27 @@ Available from both local Maven and Maven in Docker.

See [Maven](src/com/cloudogu/ces/cesbuildlib/MavenInDocker.groovy)

# Gradle

## Gradle in Docker

Run gradle in a docker container. This can be helpful, when

* constant ports are bound during the build that cause port conflicts in concurrent builds. For example, when running
integration tests, unit tests that use infrastructure that binds to ports or
* one maven repo per builds is required For example when concurrent builds of multi module project install the same
snapshot versions.

Example:
```groovy
String gradleDockerImage = 'openjdk:11.0.10-jdk'
Gradle gradlew = new GradleWrapperInDocker(this, gradleDockerImage)
stage('Build') {
gradlew "clean build"
}
```

# Git

An extension to the `git` step, that provides an API for some commonly used git commands and utilities.
Expand Down

0 comments on commit 8d31bf4

Please sign in to comment.