forked from sajramay/spring-boot-ldap-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
26 lines (26 loc) · 674 Bytes
/
Jenkinsfile
File metadata and controls
26 lines (26 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
pipeline {
agent any
stages {
stage('Build NPM') {
steps {
nodejs(nodeJSInstallationName: 'NodeJS_11_4_0') {
sh 'cd src/main/frontend && npm install && npm run build'
}
}
}
stage('Build Java') {
steps {
withMaven(maven : 'maven_3_6_0') {
sh 'mvn clean install'
}
}
}
stage('Create Docker Image') {
steps {
script {
docker.build("thewaterwalker/spring-boot-ldap-react:latest")
}
}
}
}
}