-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJenkinsfile
More file actions
43 lines (43 loc) · 1.07 KB
/
Jenkinsfile
File metadata and controls
43 lines (43 loc) · 1.07 KB
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
node {
git 'https://github.com/ssahoo81/sampleJavaScripted'
stage("build") {
snDevOpsStep '36945e350fb333009d1a986eb4767e22'
echo "Building"
sh 'mvn clean install'
sleep 5
parallel 'build-nested1': {
stage('build-nestedA') {
echo "building nested A"
sleep 3
}
}, 'build-nested2': {
stage('build-nestedB') {
echo "building nested B"
sleep 2
}
}
}
stage("test") {
snDevOpsStep 'ba945e350fb333009d1a986eb4767e22'
echo "Testing"
sh 'mvn test -Dpublish'
stage("test-nested") {
echo "Testing nested"
sleep 7
stage("test-nestedx2") {
echo "Testing nested 2"
sleep 2
}
}
sleep 3
junit '**/target/surefire-reports/*.xml'
}
stage("deploy") {
snDevOpsStep '3e945e350fb333009d1a986eb4767e22'
snDevOpsChange()
stage("deploy-nested") {
echo "Deploying"
sleep 7
}
}
}