File tree 5 files changed +23
-430
lines changed
5 files changed +23
-430
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,25 @@ trigger:
3
3
- release/*
4
4
5
5
jobs :
6
+ - job : Style
7
+ timeoutInMinutes : 10
8
+
9
+ pool :
10
+ vmImage : ' ubuntu-latest'
11
+
12
+ steps :
13
+ - script : jenkins/check_copyright.sh
14
+ displayName : " Copyright Check"
15
+
16
+ - script : jenkins/check_ascii.sh
17
+ displayName : " Ascii Check"
18
+
19
+ - script : jenkins/check_eol.sh
20
+ displayName : " EOL Check"
21
+
22
+ - script : jenkins/check_tabs.sh
23
+ displayName : " Tab Check"
24
+
6
25
- job : CMake
7
26
timeoutInMinutes : 120
8
27
strategy :
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ if [ -e $ERRFILE ]; then # if error file exists then there were errors
20
20
>&2 echo " --------------" # leading >&2 means echo to stderr
21
21
>&2 echo " --- ERRORS ---"
22
22
cat $ERRFILE 1>&2 # send output to stderr so it can be redirected as error if desired
23
- exit 1 # tell the caller there was an error (so Jenkins will fail the CI task)
23
+ exit 1 # tell the caller there was an error (so Azure will fail the CI task)
24
24
else
25
25
echo " --- NO PROBLEMS DETECTED ---"
26
26
fi
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ rm -f $ERRFILE
18
18
rm -f $ERRFILETEMP
19
19
20
20
echo " Check Copyright > Begin Checking..."
21
- git diff --name-only ` git merge-base origin/$ghprbTargetBranch HEAD` HEAD |
21
+ git diff --name-only ` git merge-base origin/master HEAD` HEAD |
22
22
grep -v -E ' \.git.*' |
23
23
grep -v -E ' \.xml$' |
24
24
grep -v -E ' \.props$' |
@@ -59,7 +59,7 @@ if [ -e $ERRFILE ]; then # if error file exists then there were errors
59
59
>&2 echo " --- ERRORS ---"
60
60
cat $ERRFILE 1>&2 # send output to stderr so it can be redirected as error if desired
61
61
>&2 echo " --------------"
62
- exit 1 # tell the caller there was an error (so Jenkins will fail the CI task)
62
+ exit 1 # tell the caller there was an error (so Azure will fail the CI task)
63
63
else
64
64
echo " --- NO PROBLEMS DETECTED ---"
65
65
fi
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ if [ -e $ERRFILE ]; then # if error file exists then there were errors
21
21
>&2 echo " --------------" # leading >&2 means echo to stderr
22
22
>&2 echo " --- ERRORS ---"
23
23
cat $ERRFILE 1>&2 # send output to stderr so it can be redirected as error if desired
24
- exit 1 # tell the caller there was an error (so Jenkins will fail the CI task)
24
+ exit 1 # tell the caller there was an error (so Azure will fail the CI task)
25
25
else
26
26
echo " --- NO PROBLEMS DETECTED ---"
27
27
fi
You can’t perform that action at this time.
0 commit comments