-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJenkinsfile
More file actions
25 lines (25 loc) · 763 Bytes
/
Jenkinsfile
File metadata and controls
25 lines (25 loc) · 763 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
pipeline {
agent any
stages {
stage ('Checkout Code') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/gouthamchilakala/PetClinic.git']]])
}
}
stage ( 'Compile') {
steps {
sh '/opt/apache-maven-3.5.3/bin/mvn compile'
}
}
stage ( ' Test Cases') {
steps {
sh '/opt/apache-maven-3.5.3/bin/mvn test'
}
}
stage ( ' Package' ) {
steps {
sh '/opt/apache-maven-3.5.3/bin/mvn package'
}
}
}
}