-
Notifications
You must be signed in to change notification settings - Fork 320
Expand file tree
/
Copy pathJenkinsfile
More file actions
27 lines (25 loc) · 1.03 KB
/
Jenkinsfile
File metadata and controls
27 lines (25 loc) · 1.03 KB
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
pipeline {
agent { label 'slave1' }
stages {
stage('SCM Checkout') {
steps {
echo 'Perfomr SCM Check-Out'
echo 'Cloning Java Maven App Code'
git 'https://github.com/LoksaiETA/Java-mvn-app2.git'
}
}
stage('Java Application Build') {
steps {
echo 'Perform Java Maven Application Build'
sh 'mvn clean package'
}
}
stage('Deploy to Tomcat_Server') {
steps {
script {
sshPublisher(publishers: [sshPublisherDesc(configName: 'SA-Tomcat_Server', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '.', remoteDirectorySDF: false, removePrefix: 'target/', sourceFiles: 'target/mvn-hello-world.war')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
}
}
}
}
}