Skip to content

Commit

Permalink
Merge pull request #44 from jglick/Jenkinsfile
Browse files Browse the repository at this point in the history
Switch Jenkinsfile to run docker-build explicitly
  • Loading branch information
jglick authored Jun 19, 2019
2 parents 49b9c60 + 113e30f commit 0f47f07
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# syntax=docker/dockerfile:1.1.1-experimental
FROM maven:3.6.1-jdk-8
COPY . /src
WORKDIR /src
RUN rm -rf .git
RUN --mount=type=cache,target=/root/.m2,sharing=private mvn -B -ntp -s settings-azure.xml -Darchetype.test.settingsFile=`pwd`/settings-azure.xml clean verify
10 changes: 4 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
pipeline {
options {
buildDiscarder(logRotator(numToKeepStr: '20'))
timeout(time: 1, unit: 'HOURS')
}
agent {
docker {
image 'maven:3.5.0-jdk-8'
label 'docker'
}
label 'docker'
}
stages {
stage('main') {
steps {
sh 'mvn -B -s settings-azure.xml -Darchetype.test.settingsFile=`pwd`/settings-azure.xml clean verify'
timeout(time: 1, unit: 'HOURS') {
sh 'docker version && DOCKER_BUILDKIT=1 docker build --progress plain --no-cache .'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
install
install -ntp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
install
install -ntp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
test
test -ntp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
install
install -ntp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
test
test -ntp

0 comments on commit 0f47f07

Please sign in to comment.