forked from honeysundar/java_application
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
22 lines (18 loc) · 738 Bytes
/
Jenkinsfile
File metadata and controls
22 lines (18 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
node {
def mvnHome
stage('Preparation') { // for display purposes
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'a9ee3dc3-1073-4e39-8f74-31c6fb6ec4cd', url: 'https://github.com/honeysundar/java_application.git']]])
}
stage('Build') {
// Run the maven build
if (isUnix()) {
sh returnStatus: true, script: 'mvn install'
// sh "'${mvnHome}/bin/mvn' -Dmaven.test.failure.ignore clean package"
} else {
bat(/"${mvnHome}\bin\mvn" -Dmaven.test.failure.ignore clean package/)
}
}
stage('deploy') {
build 'deployment_job'
}
}