-
Notifications
You must be signed in to change notification settings - Fork 300
/
Copy pathJenkinsfile
44 lines (37 loc) · 1.04 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
pipeline {
agent {
label 'windows'
}
tools {
// Install the Maven version configured as "M3" and add it to the path.
maven "MVN3"
}
stages {
stage('pull scm') {
steps {
// Get some code from a GitHub repository
git credentialsId: 'github', url: '[email protected]:sathishbob/jenkins_test.git'
}
}
stage('Build') {
steps {
bat "mvn -Dmaven.test.failure.ignore=true -f api-gateway/ clean package"
}
}
stage('archive') {
steps {
archiveArtifacts artifacts: 'api-gateway/target/*.jar', followSymlinks: false
}
}
stage('publish test result') {
steps {
junit 'api-gateway/target/surefire-reports/*.xml'
}
}
stage('test') {
steps {
bat "echo testing"
}
}
}
}