forked from sathishbob/jenkins_test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.Jenkinsfile
35 lines (33 loc) · 1011 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
pipeline {
agent any
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 {
// Run Maven on a Unix agent.
sh "mvn -Dmaven.test.failure.ignore=true -f api-gateway clean package"
// bat "mvn -Dmaven.test.failure.ignore=true -f api-gateway clean package"
}
post {
success {
junit 'api-gateway/target/surefire-reports/*.xml'
archiveArtifacts 'api-gateway/target/*.jar'
}
}
}
stage('print') {
steps {
sh "echo iaminprintstage"
}
}
}
}