forked from kbsri86/First_repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsFile_test_skipped
57 lines (48 loc) · 1.4 KB
/
JenkinsFile_test_skipped
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
47
48
49
50
51
52
53
54
55
56
57
pipeline {
agent any
stages {
stage('Stage 1') {
when {
equals expected: 2, actual: 3
}
steps {
sleep 5
//snDevOpsChange()
echo 'Executing stage 1'
//sh 'fail'
//error("Build failed because of this and that..")
}
}
stage('Stage 2') {
when {
equals expected: 2, actual: 2
}
environment {
SCANNER_HOME = tool 'sonarScanner'
}
steps {
echo 'Executing stage 2'
// sh 'fail'
//snDevOpsChange()
sleep 5
//error("Build failed because of this and that..")
withSonarQubeEnv('sonarQube_local')
{
sh '${SCANNER_HOME}/bin/sonar-scanner -Dproject.settings=${SCANNER_HOME}/conf/qa-sonar-scanner.properties'
}
}
}
stage('Stage 3') {
when {
equals expected: 2, actual: 3
}
steps {
sleep 5
//snDevOpsChange()
//sh 'false'
error("Build failed because of this and that..")
echo 'Executing stage 3'
}
}
}
}