File tree Expand file tree Collapse file tree 2 files changed +60
-1
lines changed
Expand file tree Collapse file tree 2 files changed +60
-1
lines changed Original file line number Diff line number Diff line change 1+ #! groovy
2+
3+ pipeline {
4+ // using same agnert as ConfigCheck job
5+ agent {
6+ label {
7+ label ' ConfigCheck'
8+ }
9+ }
10+
11+ triggers {
12+ cron(' H 8 * * *' )
13+ }
14+
15+ environment {
16+ SSH_CREDENTIALS = credentials(' SSH' )
17+ TEST_INSTRUMENT_LIST = " ${ TEST_INSTRUMENT_LIST} "
18+ USE_TEST_INSTRUMENT_LIST = " ${ USE_TEST_INSTRUMENT_LIST} "
19+ DEBUG_MODE = " ${ DEBUG_MODE} "
20+ REPO_DIR = " C:\\ Instrument\\ Settings\\ config\\ common"
21+ UPSTREAM_BRANCH_CONFIG = " master"
22+ }
23+
24+ stages {
25+ stage(' Checkout' ) {
26+ steps {
27+ timeout(time : 2 , unit : ' HOURS' ) {
28+ retry(5 ) {
29+ checkout scm
30+ }
31+ }
32+ }
33+ }
34+
35+ stage(' Check Instrument has any Hotfixes and then any uncommitteed changes' ) {
36+ steps {
37+ echo ' Check Instrument has any commits or any uncommitteed changes'
38+ timeout(time : 1 , unit : ' HOURS' ) {
39+ bat '''
40+ call utils/jenkins_utils/hotfix_checker.bat
41+ '''
42+ }
43+ }
44+ }
45+ }
46+
47+ post {
48+ always {
49+ archiveArtifacts artifacts : " git_status/*.txt" , caseSensitive : false
50+ logParser([
51+ projectRulePath : ' parse_rules' ,
52+ parsingRulesPath : ' ' ,
53+ showGraphs : true ,
54+ unstableOnWarning : true ,
55+ useProjectRule : true ,
56+ ])
57+ }
58+ }
59+ }
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ pipeline {
4747
4848 post {
4949 always {
50- archiveArtifacts artifacts : ' * git_status/*.txt' , caseSensitive : false
50+ archiveArtifacts artifacts : " / git_status/*.txt" , caseSensitive : false
5151 logParser([
5252 projectRulePath : ' parse_rules' ,
5353 parsingRulesPath : ' ' ,
You can’t perform that action at this time.
0 commit comments