-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile_config_dir
68 lines (62 loc) · 1.93 KB
/
Jenkinsfile_config_dir
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
58
59
60
61
62
63
64
65
66
67
68
#!groovy
pipeline {
// using same agnert as ConfigCheck job
agent {
label {
label 'ConfigCheck'
}
}
triggers {
cron('H 8 * * *')
}
options {
disableConcurrentBuilds()
timestamps()
// as we "checkout scm" as a stage, we do not need to do it here too
skipDefaultCheckout(true)
}
environment {
SSH_CREDENTIALS = credentials('SSH')
TEST_INSTRUMENT_LIST = "${TEST_INSTRUMENT_LIST}"
USE_TEST_INSTRUMENT_LIST = "${USE_TEST_INSTRUMENT_LIST}"
DEBUG_MODE = "${DEBUG_MODE}"
REPO_DIR = "C:\\Instrument\\Settings\\config\\common"
UPSTREAM_BRANCH_CONFIG = "master"
SHOW_UNCOMMITTED_CHANGES_MESSAGES="false"
}
stages {
stage('Checkout') {
steps {
timeout(time: 2, unit: 'HOURS') {
retry(5) {
checkout scm
}
}
}
}
stage('Check Instrument has any Hotfixes and then any uncommitteed changes') {
steps {
echo 'Check Instrument has any commits or any uncommitteed changes'
timeout(time: 1, unit: 'HOURS') {
bat '''
call get_python.bat
call utils/jenkins_utils/hotfix_checker.bat
call \\\\isis.cclrc.ac.uk\\Shares\\ISIS_Experiment_Controls_Public\\ibex_utils\\installation_and_upgrade\\remove_genie_python.bat
'''
}
}
}
}
post {
always {
archiveArtifacts artifacts: "git_status/*.txt", caseSensitive: false
logParser([
projectRulePath: 'parse_rules',
parsingRulesPath: '',
showGraphs: true,
unstableOnWarning: true,
useProjectRule: true,
])
}
}
}