Skip to content
This repository was archived by the owner on Dec 31, 2020. It is now read-only.

Commit 1e783e7

Browse files
committed
Add Jenkinsfile
1 parent ad65f36 commit 1e783e7

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

Jenkinsfile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
pipeline {
2+
environment {
3+
JAVA_TOOL_OPTIONS = '-Duser.home=/var/jenkins_home'
4+
}
5+
agent {
6+
docker {
7+
image 'maven:3.6.1-jdk-8-alpine'
8+
args '-e MAVEN_CONFIG=/var/jenkins_home/.m2'
9+
}
10+
}
11+
stages {
12+
stage('Preparation') {
13+
steps {
14+
git url: 'https://github.com/rlsutton1/GridStack.git'
15+
}
16+
}
17+
stage('Build') {
18+
steps {
19+
sh 'mvn -B -Dmaven.test.skip=true -DskipTests clean package'
20+
}
21+
}
22+
stage('Deliver') {
23+
steps {
24+
sh 'mvn jar:jar install:install help:evaluate -Dexpression=project.name -f gridstack-addon/pom.xml'
25+
}
26+
}
27+
}
28+
post {
29+
always {
30+
emailext attachLog: true,
31+
to: '$DEFAULT_RECIPIENTS',
32+
subject: '$DEFAULT_SUBJECT',
33+
body: '$DEFAULT_CONTENT'
34+
}
35+
}
36+
}
37+

0 commit comments

Comments
 (0)