Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jenkins Pipeline Updates #2815

Merged
Changes from 4 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
499401d
add global default env variable for gh the GitHub CLI executable in a…
TerryMcGuinness-NOAA Aug 7, 2024
0ee59ea
add global default env variable for gh the GitHub CLI executable in a…
TerryMcGuinness-NOAA Aug 7, 2024
2f49a04
reverted to authrative URL after testing
TerryMcGuinness-NOAA Aug 7, 2024
291d1de
added a catcherror block around running experments to capture fails o…
TerryMcGuinness-NOAA Aug 7, 2024
a12d611
Update ci/Jenkinsfile
TerrenceMcGuinness-NOAA Aug 7, 2024
a101111
reverted suggestion and added indent
TerryMcGuinness-NOAA Aug 7, 2024
e7b38e2
added build number to final message
TerryMcGuinness-NOAA Aug 7, 2024
ffbd2be
make GH a global variable and assign it once the Node conncetion is e…
TerryMcGuinness-NOAA Aug 7, 2024
b7a1ee8
updated buildResult on stage catError mode and forced an error to get…
TerryMcGuinness-NOAA Aug 7, 2024
de53854
added build number to all messages and trying FAIL attribute in build…
TerryMcGuinness-NOAA Aug 7, 2024
4a01316
Merge branch 'NOAA-EMC:develop' into jenkins_shell_env_update
TerrenceMcGuinness-NOAA Aug 8, 2024
a2daf59
added failFast to case matrix
TerryMcGuinness-NOAA Aug 8, 2024
d2ec0e0
hard coded failFast feature into running cases matrix
TerryMcGuinness-NOAA Aug 8, 2024
b1bf521
trying out a more complex solution using threads to check background …
TerryMcGuinness-NOAA Aug 8, 2024
99a9a9d
removed attempt to use threads for hand coded fastFail for cases
TerryMcGuinness-NOAA Aug 8, 2024
986186f
moved the failFast attribute at the top of the matrix block
TerryMcGuinness-NOAA Aug 8, 2024
002f9fd
taking a stab at using a parrallel construct in place of matrix
TerryMcGuinness-NOAA Aug 8, 2024
20f3528
parallel section needs to be in a script under steps
TerryMcGuinness-NOAA Aug 8, 2024
530bd19
still trying to get stag steps hiarchy in parallel block
TerryMcGuinness-NOAA Aug 8, 2024
246bac4
third attept at getting stages in the right place
TerryMcGuinness-NOAA Aug 8, 2024
7659b37
fourth with aliginging brackets
TerryMcGuinness-NOAA Aug 8, 2024
0bfe315
moved script inside of stages
TerryMcGuinness-NOAA Aug 8, 2024
b7e48be
removed extra stage block
TerryMcGuinness-NOAA Aug 8, 2024
f154fd6
removed extra steps block too
TerryMcGuinness-NOAA Aug 8, 2024
7e40a90
removed steps back and try to solve when again
TerryMcGuinness-NOAA Aug 8, 2024
a7ab366
removed when and used if instead sence they can not be used inside steps
TerryMcGuinness-NOAA Aug 8, 2024
5c1c666
no steps in stepsgit add Jenkinsfile
TerryMcGuinness-NOAA Aug 8, 2024
cb158a8
parallelStages is working now, rename loop contol variable for caseName
TerryMcGuinness-NOAA Aug 8, 2024
5f5df7a
cleaned up code after getting parrallel working
TerryMcGuinness-NOAA Aug 8, 2024
b4d5ed6
matrix stage labels must be literal
TerryMcGuinness-NOAA Aug 8, 2024
a670daf
added dyamic case list
TerryMcGuinness-NOAA Aug 9, 2024
b2f6c60
removed hard coded list cases
TerryMcGuinness-NOAA Aug 9, 2024
05a83cc
Reverse order in case label to match Create
TerryMcGuinness-NOAA Aug 9, 2024
beee137
Merge branch 'NOAA-EMC:develop' into jenkins_shell_env_update
TerrenceMcGuinness-NOAA Aug 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ pipeline {
parallelsAlwaysFailFast()
}

environment {
GH = '~/bin/gh'
TerrenceMcGuinness-NOAA marked this conversation as resolved.
Show resolved Hide resolved
}

stages { // This initial stage is used to get the Machine name from the GitHub labels on the PR
// which is used to designate the Nodes in the Jenkins Controler by the agent label
// Each Jenknis Node is connected to said machine via an JAVA agent via an ssh tunnel
Expand Down Expand Up @@ -223,6 +227,7 @@ pipeline {
expression { return caseList.contains(Case) }
}
steps {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
script {
TerrenceMcGuinness-NOAA marked this conversation as resolved.
Show resolved Hide resolved
HOMEgfs = "${CUSTOM_WORKSPACE}/gfs" // common HOMEgfs is used to launch the scripts that run the experiments
def pslot = sh(script: "${HOMEgfs}/ci/scripts/utils/ci_utils_wrapper.sh get_pslot ${CUSTOM_WORKSPACE}/RUNTESTS ${Case}", returnStdout: true).trim()
Expand Down Expand Up @@ -271,6 +276,7 @@ pipeline {
}
}
}
}
}
}
}
Expand Down
Loading