e00fc61dcf
Mellanox Open MPI CI: optimized git checkout step to reduce CI duration (v4.0.x)
48 строки
1.4 KiB
YAML
48 строки
1.4 KiB
YAML
trigger: none
|
|
pr:
|
|
- master
|
|
- v*.*.x
|
|
|
|
pool:
|
|
name: Default
|
|
demands:
|
|
- AGENT_CI_TARGET -equals ompi
|
|
- MLNX_IB_DEVICE -equals yes
|
|
|
|
variables:
|
|
ompi_jenkins_scripts_git_repo_url: https://github.com/mellanox-hpc/jenkins_scripts.git
|
|
ompi_jenkins_scripts_git_branch: ompi_v4.0.x
|
|
# Enable debug information, supported values: true, false
|
|
debug: true
|
|
|
|
jobs:
|
|
- job: mellanox_ompi_ci
|
|
displayName: Mellanox Open MPI CI
|
|
timeoutInMinutes: 240
|
|
container:
|
|
image: rdmz-harbor.rdmz.labs.mlnx/hpcx/ompi_ci:latest
|
|
options: -v /hpc/local:/hpc/local -v /opt:/opt --uts=host --ipc=host --ulimit stack=67108864
|
|
--ulimit memlock=-1 --security-opt seccomp=unconfined --cap-add=SYS_ADMIN --device=/dev/infiniband/
|
|
steps:
|
|
- task: DeleteFiles@1
|
|
displayName: Cleanup workspace folder
|
|
inputs:
|
|
sourceFolder: $(Pipeline.Workspace)
|
|
contents: |
|
|
**/jenkins_scripts
|
|
- checkout: self
|
|
submodules: true
|
|
path: ompi
|
|
clean: true
|
|
- bash: |
|
|
set -eE
|
|
[ "$(debug)" = "true" ] && set -x
|
|
cd $(Pipeline.Workspace)
|
|
git clone $(ompi_jenkins_scripts_git_repo_url)
|
|
cd $(Pipeline.Workspace)/jenkins_scripts && git checkout $(ompi_jenkins_scripts_git_branch)
|
|
export WORKSPACE=$(Pipeline.Workspace)/ompi
|
|
# TODO: rework ompi_test.sh to avoid Jenkins mentions
|
|
export JENKINS_RUN_TESTS=yes
|
|
$(Pipeline.Workspace)/jenkins_scripts/jenkins/ompi/ompi_test.sh
|
|
displayName: Build and test Open MPI
|