-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
2 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
]) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters