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
29 lines (22 loc) · 971 Bytes
/
Copy pathJenkinsfile
File metadata and controls
29 lines (22 loc) · 971 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
27
28
29
node {
def mvnHome
parameters {
string(defaultValue: "TEST", description: 'What environment?', name: 'userFlag')
// choices are newline separate
choice(choices: 'US-EAST-1\nUS-WEST-2', description: 'What AWS region?', name: 'region')
}
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') {
}
}