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 8d31bf4 commit 9e67df8
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Jenkins Pipeline Shared library, that contains additional features for Git, Mave
- [Deploying sites](#deploying-sites)
- [Passing additional arguments](#passing-additional-arguments)
- [Maven Utilities](#maven-utilities)
- [Gradle](#gradle)
- [Gradle Wrapper in Docker](#gradle-wrapper-in-docker)
- [Git](#git)
- [Credentials](#credentials)
- [Git Utilities](#git-utilities)
Expand Down Expand Up @@ -443,14 +445,12 @@ See [Maven](src/com/cloudogu/ces/cesbuildlib/MavenInDocker.groovy)

# Gradle

## Gradle in Docker
## Gradle Wrapper in Docker

Run gradle in a docker container. This can be helpful, when
It's also possible to use a GradleWrapper in a Docker Container. Here, the Docker container is responsible for
providing the JDK.

* 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.
See [GradleWrapperInDocker](src/com/cloudogu/ces/cesbuildlib/GradleWrapperInDocker.groovy)

Example:
```groovy
Expand All @@ -462,6 +462,9 @@ stage('Build') {
}
```

Since Oracle's announcement of shorter free JDK support, plenty of JDK images have appeared on public container image
registries, where `adoptopenjdk` is just one option. The choice is yours.

# 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 9e67df8

Please sign in to comment.