Skip to content

Commit

Permalink
Merge pull request #4 from ISISComputingGroup/Ticket8402_Jenkins_job_…
Browse files Browse the repository at this point in the history
…to_check_the_status_of_Instrument_config_dir

Ticket8402 jenkins job to check the status of instrument config dir
  • Loading branch information
rerpha authored Aug 6, 2024
2 parents 22af7df + 20fee64 commit 8ac9f6b
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
59 changes: 59 additions & 0 deletions Jenkinsfile_config_dir
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!groovy

pipeline {
// using same agnert as ConfigCheck job
agent {
label {
label 'ConfigCheck'
}
}

triggers {
cron('H 8 * * *')
}

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"
}

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 utils/jenkins_utils/hotfix_checker.bat
'''
}
}
}
}

post {
always {
archiveArtifacts artifacts: "git_status/*.txt", caseSensitive: false
logParser([
projectRulePath: 'parse_rules',
parsingRulesPath: '',
showGraphs: true,
unstableOnWarning: true,
useProjectRule: true,
])
}
}
}
2 changes: 1 addition & 1 deletion Jenkinsfile → Jenkinsfile_epics_dir
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pipeline {

post {
always {
archiveArtifacts artifacts: '*git_status/*.txt', caseSensitive: false
archiveArtifacts artifacts: "/git_status/*.txt", caseSensitive: false
logParser([
projectRulePath: 'parse_rules',
parsingRulesPath: '',
Expand Down

0 comments on commit 8ac9f6b

Please sign in to comment.