forked from phyllisn-landmark/maven-web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
43 lines (40 loc) · 752 Bytes
/
Jenkinsfile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
//Jenkins pipeline script
//Groovy script
node
{
def mavenHome = tool name: 'maven3.6.3'
stage('1. CodeClone')
{
git credentialsId: 'Github_credentials', url: 'https://github.com/myLandmakTechnology/maven-web-app.git'
}
stage('2. Build')
{
sh "${mavenHome}/bin/mvn package"
}
stage('3. CodeQuality')
{
//sh "${mavenHome}/bin/mvn sonar:sonar"
}
stage('4.UploadNexus')
{
//sh "${mavenHome}/bin/mvn deploy"
}
stage('5. Approval')
{
echo "Approved. Ready for deployment"
}
stage('6. DeployTomcat')
{
//deploy adapters: [tomcat9(credentialsId: 'Tomcat-Credentials', path: '', url: 'http://54.163.156.108:8888/')], contextPath: null, war: 'target/*war'
}
stage('7. Notification')
{
//emailextrecipients([developers()])
}
}
//
/*
the
this
they
*/