-
Notifications
You must be signed in to change notification settings - Fork 32
/
Jenkinsfile
46 lines (42 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
40
41
42
43
44
45
46
pipeline {
agent any
environment {
PASS = credentials('registry-pass')
// Comment
}
stages {
stage('Build') {
steps {
sh '''
./build/mvn.sh mvn -B -DskipTests clean package
./build/build.sh
'''
}
post {
success {
archiveArtifacts artifacts: 'build/simple-java-maven-app/target/*.jar', fingerprint: true
}
}
}
stage('Test') {
steps {
sh './build/mvn-test.sh mvn test'
}
post {
always {
junit 'build/simple-java-maven-app/target/surefire-reports/*.xml'
}
}
}
stage('Push') {
steps {
sh './push/push.sh'
}
}
stage('Deploy') {
steps {
sh './deploy/deploy.sh'
}
}
}
}