-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check-in Jenkins Docker ORT CI (#1411)
* Update input-data and hpc-stack containers * Update Dockerfile and opnReqTest * Update Jenkinsfile to handle PRs properly Co-authored-by: JONG KIM <[email protected]>
- Loading branch information
Showing
5 changed files
with
102 additions
and
26 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
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 |
---|---|---|
@@ -1,19 +1,20 @@ | ||
From noaaemc/ubuntu-hpc:v1.11b | ||
From noaaepic/ubuntu20.04-gnu9.3-hpc-stack:v1.2 | ||
|
||
CMD ["/bin/bash"] | ||
|
||
ENV HOME=/home/builder | ||
COPY --chown=builder:builder . $HOME/ufs-weather-model | ||
|
||
USER builder | ||
ENV USER=builder | ||
ARG test_name | ||
ARG build_case | ||
ARG run_case | ||
ENV test_name=$test_name | ||
ENV build_case=$build_case | ||
ENV test_case= | ||
ENV run_case=$run_case | ||
ENV CI_TEST=true | ||
ENV RT_COMPILER=gnu | ||
ENV RT_MACHINE=linux.gnu | ||
ENV RT_MACHINE=linux | ||
ENV MACHINE_ID=linux | ||
|
||
WORKDIR $HOME/ufs-weather-model/tests | ||
RUN ./opnReqTest -n $test_name -c $build_case -z && tar -cvzf fv3.tar.gz fv3_*.exe modules.fv3_* | ||
CMD ./opnReqTest -n $test_name -c $test_case -x | ||
CMD ./opnReqTest -n $test_name -c $run_case |
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,75 @@ | ||
pipeline { | ||
agent none | ||
|
||
options { | ||
disableConcurrentBuilds() | ||
overrideIndexTriggers(false) | ||
skipDefaultCheckout(true) | ||
} | ||
|
||
stages { | ||
stage('ORT') { | ||
matrix { | ||
axes { | ||
axis { | ||
name 'TEST_NAME' | ||
values 'control', 'regional_control', 'cpld_control_nowave_noaero_p8' | ||
} | ||
|
||
axis { | ||
name 'TEST_CASE' | ||
values 'thr', 'mpi', 'dcp', 'rst', 'bit', 'dbg' | ||
} | ||
} | ||
|
||
excludes { | ||
exclude { | ||
axis { | ||
name 'TEST_NAME' | ||
values 'regional_control' | ||
} | ||
|
||
axis { | ||
name 'TEST_CASE' | ||
values 'mpi', 'rst', 'bit', 'dbg' | ||
} | ||
} | ||
|
||
exclude { | ||
axis { | ||
name 'TEST_NAME' | ||
values 'cpld_control_nowave_noaero_p8' | ||
} | ||
|
||
axis { | ||
name 'TEST_CASE' | ||
values 'mpi', 'dcp', 'rst', 'bit', 'thr' // TODO: Remove thr case from cpld_control_nowave_noaero_p8 exclusions when it is passing again | ||
} | ||
} | ||
} | ||
|
||
stages { | ||
stage('Test') { | ||
when { | ||
expression { | ||
!changeRequest() | ||
} | ||
} | ||
|
||
steps { | ||
build job: 'ufs-weather-model/ort-docker-pipeline', parameters: [string(name: 'TEST_NAME', value: "${env.TEST_NAME}"), string(name: 'TEST_CASE', value: "${env.TEST_CASE}"), string(name: 'WRAPPER_GIT_BRANCH', value: "${env.BRANCH_NAME}")] | ||
} | ||
} | ||
|
||
stage('Test for Change Request') { | ||
when { changeRequest() } | ||
|
||
steps { | ||
build job: 'ufs-weather-model/ort-docker-pipeline', parameters: [string(name: 'TEST_NAME', value: "${env.TEST_NAME}"), string(name: 'TEST_CASE', value: "${env.TEST_CASE}"), booleanParam(name: 'WRAPPER_CHANGE_REQUEST', value: true), string(name: 'WRAPPER_GIT_BRANCH', value: "${env.CHANGE_TARGET}"), string(name: 'WRAPPER_CHANGE_BRANCH', value: "${env.CHANGE_BRANCH}"), string(name: 'WRAPPER_CHANGE_FORK', value: "${env.CHANGE_FORK}")] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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
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