Skip to content

Commit 8ac9f6b

Browse files
authored
Merge pull request #4 from ISISComputingGroup/Ticket8402_Jenkins_job_to_check_the_status_of_Instrument_config_dir
Ticket8402 jenkins job to check the status of instrument config dir
2 parents 22af7df + 20fee64 commit 8ac9f6b

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed

Jenkinsfile_config_dir

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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+
}

Jenkinsfile renamed to Jenkinsfile_epics_dir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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: '',

0 commit comments

Comments
 (0)