-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathJenkinsfile2
More file actions
35 lines (27 loc) · 771 Bytes
/
Copy pathJenkinsfile2
File metadata and controls
35 lines (27 loc) · 771 Bytes
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
#!/usr/bin/env groovy
@Library('javahome-demo@main')_ //master or whatever branch
pipeline{
agent {
docker {
image 'maven:3-openjdk-11'
args '-v $HOME/.m2:/root/.m2'
}
}
stages{
stage('maven build'){
steps{
script{
sh "mvn clean install"
}
}
}
stage ('Check logs') {
steps {
script{
//calculator.add(2,3)
filterLogs('WARNING', 10)
}
}
}
}
}