-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
AnilKumar-NOAA
authored and
AnilKumar-NOAA
committed
Jun 18, 2024
1 parent
00f40db
commit 9aa6830
Showing
1 changed file
with
6 additions
and
5 deletions.
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ def machine = 'none' | |
def HOME = 'none' | ||
def caseList = '' | ||
// Location of the custom workspaces for each machine in the CI system. They are persitent for each iteration of the PR. | ||
def NodeName = [Hera: 'Hera-EMC', Orion: 'Orion-EMC', Hercules: 'Hercules-EMC', Gaea: 'Gaea'] | ||
def custom_workspace = [hera: '/scratch1/NCEPDEV/global/CI', orion: '/work2/noaa/stmp/CI/ORION', hercules: '/work2/noaa/stmp/CI/HERCULES', gaea: '/gpfs/f5/epic/proj-shared/global/CI'] | ||
def repo_url = '[email protected]:NOAA-EMC/global-workflow.git' | ||
def STATUS = 'Passed' | ||
|
@@ -70,13 +71,13 @@ pipeline { | |
} | ||
|
||
stage('2. Get Common Workspace') { | ||
agent { label "${machine}-emc" } | ||
agent { label NodeName[machine].toLowerCase() } | ||
steps { | ||
script { | ||
Machine = machine[0].toUpperCase() + machine.substring(1) | ||
echo "Getting Common Workspace for ${Machine}" | ||
ws("${custom_workspace[machine]}/${env.CHANGE_ID}") { | ||
properties([parameters([[$class: 'NodeParameterDefinition', allowedSlaves: ['built-in', 'Hera-EMC', 'Orion-EMC'], defaultSlaves: ['built-in'], name: '', nodeEligibility: [$class: 'AllNodeEligibility'], triggerIfResult: 'allCases']])]) | ||
properties([parameters([[$class: 'NodeParameterDefinition', allowedSlaves: ['built-in', 'Hercules-EMC', 'Hera-EMC', 'Orion-EMC', 'Gaea'], defaultSlaves: ['built-in'], name: '', nodeEligibility: [$class: 'AllNodeEligibility'], triggerIfResult: 'allCases']])]) | ||
HOME = "${WORKSPACE}" | ||
sh(script: "mkdir -p ${HOME}/RUNTESTS;rm -Rf ${HOME}/RUNTESTS/*") | ||
sh(script: """${GH} pr edit ${env.CHANGE_ID} --repo ${repo_url} --add-label "CI-${Machine}-Building" --remove-label "CI-${Machine}-Ready" """) | ||
|
@@ -88,7 +89,7 @@ pipeline { | |
|
||
stage('3. Build System') { | ||
matrix { | ||
agent { label "${machine}-emc" } | ||
agent { label NodeName[machine].toLowerCase() } | ||
//options { | ||
// throttle(['global_matrix_build']) | ||
//} | ||
|
@@ -173,7 +174,7 @@ pipeline { | |
stage('4. Run Tests') { | ||
failFast false | ||
matrix { | ||
agent { label "${machine}-emc" } | ||
agent { label NodeName[machine].toLowerCase() } | ||
axes { | ||
axis { | ||
name 'Case' | ||
|
@@ -264,7 +265,7 @@ pipeline { | |
STATUS == 'Passed' | ||
} | ||
} | ||
agent { label "${machine}-emc" } | ||
agent { label NodeName[machine].toLowerCase() } | ||
steps { | ||
script { | ||
try { | ||
|