forked from udacity/nd035-c4-Security-and-DevOps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
39 lines (34 loc) · 1.03 KB
/
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
pipeline {
agent any
stages {
stage('Build & Test') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/feature']], userRemoteConfigs: [[url: 'https://github.com/mhayo/eCommerceApp.git']]])
// sh './mvnw clean package'
// sh 'cd App && mvn clean package'
// sh 'cd App && mvn compile package'
sh 'cd App && mvn compile -DskipTests=true'
}
}
/*
stage('Test') {
steps {
// sh './mvnw test'
sh 'cd App && ./mvnw test'
}
}
stage('Deploy') {
steps {
sh 'cd App && cp target/eCommerceApp.war /usr/local/tomcat/webapps' }
}*/
}
post {
success {
echo 'Process successfully!!'
// Hier könntest du weitere Benachrichtigungen oder Integrationen hinzufügen
}
failure {
echo 'An error is occured'
}
}
}