diff --git a/Jenkinsfile b/Jenkinsfile index 83b8fc55cc3..e578e32cf29 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,6 +18,7 @@ // To use a test branch (i.e. PR) until it lands to master // I.e. for testing library changes //@Library(value='pipeline-lib@your_branch') _ +@Library(value='pipeline-lib@hendersp/DAOS-17203') _ /* groovylint-disable-next-line CompileStatic */ job_status_internal = [:] @@ -558,7 +559,7 @@ pipeline { } } } - stage('Build RPM on Leap 15.5') { + stage('Build RPM on Leap 15.6') { when { beforeAgent true expression { !skipStage() } @@ -571,8 +572,7 @@ pipeline { ' --cap-add=SYS_ADMIN' + ' --privileged=true' + ' -v /scratch:/scratch' - additionalBuildArgs dockerBuildArgs() + - '--build-arg FVERSION=37' + additionalBuildArgs dockerBuildArgs() } } steps { @@ -712,10 +712,10 @@ pipeline { } } } - stage('Build on Leap 15.5') { + stage('Build on Leap 15.6') { when { beforeAgent true - expression { !params.CI_leap15_NOBUILD && !skipStage() } + expression { !params.CI_leap15_NOBUILD && !skipStage() } } agent { dockerfile { @@ -724,15 +724,18 @@ pipeline { additionalBuildArgs dockerBuildArgs(repo_type: 'stable', parallel_build: true, deps_build: true) + - " -t ${sanitized_JOB_NAME()}-leap15-gcc" + " -t ${sanitized_JOB_NAME()}-leap15-gcc" + + ' --build-arg REPOS="' + prRepos() + '"' } } steps { job_step_update( sconsBuild(parallel_build: true, - scons_args: sconsFaultsArgs() + - ' PREFIX=/opt/daos TARGET_TYPE=release', - build_deps: 'yes')) + stash_files: 'ci/test_files_to_stash.txt', + build_deps: 'no', + stash_opt: true, + scons_args: sconsArgs() + + ' PREFIX=/opt/daos TARGET_TYPE=release')) } post { unsuccessful { @@ -747,10 +750,10 @@ pipeline { } } } - stage('Build on Leap 15.5 with Intel-C and TARGET_PREFIX') { + stage('Build on Leap 15.6 with Intel-C and TARGET_PREFIX') { when { beforeAgent true - expression { !params.CI_leap15_NOBUILD && !skipStage() } + expression { !params.CI_leap15_NOBUILD && !skipStage() } } agent { dockerfile { @@ -759,16 +762,19 @@ pipeline { additionalBuildArgs dockerBuildArgs(repo_type: 'stable', parallel_build: true, deps_build: true) + - " -t ${sanitized_JOB_NAME()}-leap15" + + " -t ${sanitized_JOB_NAME()}-leap15-intelc" + + ' --build-arg REPOS="' + prRepos() + '"' + ' --build-arg COMPILER=icc' } } steps { job_step_update( sconsBuild(parallel_build: true, - scons_args: sconsFaultsArgs() + - ' PREFIX=/opt/daos TARGET_TYPE=release', - build_deps: 'no')) + stash_files: 'ci/test_files_to_stash.txt', + build_deps: 'no', + stash_opt: true, + scons_args: sconsArgs() + + ' PREFIX=/opt/daos TARGET_TYPE=release')) } post { unsuccessful { diff --git a/ci/parse_ci_envs.sh b/ci/parse_ci_envs.sh index 84cb0183f91..332b578239b 100755 --- a/ci/parse_ci_envs.sh +++ b/ci/parse_ci_envs.sh @@ -23,7 +23,7 @@ if [ -n "${STAGE_NAME:?}" ]; then : "${REPO_SPEC:=el-9}" ;; *Leap\ 15.6*|*leap15.6*|*opensuse15.6*|*sles15.6*) - : "${CHROOT_NAME:=opensuse-leap-15.5-x86_64}" + : "${CHROOT_NAME:=opensuse-leap-15.6-x86_64}" : "${TARGET:=leap15.6}" ;; *Leap\ 15.5*|*leap15.5*|*opensuse15.5*|*sles15.5*) @@ -39,7 +39,7 @@ if [ -n "${STAGE_NAME:?}" ]; then : "${TARGET:=leap15.3}" ;; *Leap\ 15*|*leap15*|*opensuse15*|*sles15*) - : "${CHROOT_NAME:=opensuse-leap-15.5-x86_64}" + : "${CHROOT_NAME:=opensuse-leap-15.6-x86_64}" : "${TARGET:=leap15}" : "${REPO_SPEC:=sl-15}" ;; diff --git a/utils/scripts/install-leap15.sh b/utils/scripts/install-leap15.sh index 6b7e02f848e..4ff39dfce44 100755 --- a/utils/scripts/install-leap15.sh +++ b/utils/scripts/install-leap15.sh @@ -75,6 +75,11 @@ dnf --nodocs install ${dnf_install_args} \ which \ yasm +# Make sure we have lua-lmod > 8.7.34 +dnf remove lua-lmod +dnf --nodocs --nogpgcheck install ${dnf_install_args} \ + lua-lmod --repo='*-oss*' --repo '*lua*' --repo '*network-cluster*' + # shellcheck disable=SC2086 dnf install ${dnf_install_args} ruby-devel gem install json -v 2.7.6