Skip to content

Commit

Permalink
Merge pull request #1 from stakater-docker/gradle-3.4.1
Browse files Browse the repository at this point in the history
add Dockerfile and Jenkinsfile for gradle 3.4.1
  • Loading branch information
stakater-user authored Jul 15, 2019
2 parents f73abde + ca1cff4 commit 367056d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,15 @@ VOLUME /home/gradle/.gradle

WORKDIR /home/gradle

# Setting Gradle Version that needs to be installed
ENV GRADLE_VERSION 3.5

# Set Gradle version to 3.4.1 or 3.5(commented below),
ENV GRADLE_VERSION 3.4.1
# Download and Install Gradle
ARG GRADLE_DOWNLOAD_SHA256=0b7450798c190ff76b9f9a3d02e18b33d94553f708ebc08ebe09bdf99111d110
ARG GRADLE_DOWNLOAD_SHA256=db1db193d479cc1202be843f17e4526660cfb0b21b57d62f3a87f88c878af9b2

# Uncomment below 2 lines to set Gradle version 3.5
# ENV GRADLE_VERSION 3.5
#ARG GRADLE_DOWNLOAD_SHA256=0b7450798c190ff76b9f9a3d02e18b33d94553f708ebc08ebe09bdf99111d110

RUN set -o errexit -o nounset \
&& echo "Downloading Gradle" \
&& wget --no-verbose --output-document=gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" \
Expand Down
4 changes: 3 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@

pushDockerImage {
dockerRepositoryURL = "docker.io"
imagePrefix = "3.5-jdk1.8-v2.0.1"
// Set Version of Gradle
imagePrefix = "3.4.1-jdk1.8-v2.0.1"
// imagePrefix = "3.5-jdk1.8-v2.0.1"
}

0 comments on commit 367056d

Please sign in to comment.