Skip to content

Commit 6cbb9d9

Browse files
committed
Maintain both 15.5 and 15.6 versions of Lepa
Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@hpe.com> Priority: 2 Skip-python-bandit: true Skip-build-el8-gcc: true Skip-build-el9-gcc: true Skip-unit-tests:true Skip-unit-test: true Skip-NLT: true Skip-unit-test-memcheck: true Skip-func-vm: true Skip-func-test-el9: true Skip-fault-injection-test: true Skip-func-hw-test: true
1 parent e511098 commit 6cbb9d9

3 files changed

Lines changed: 55 additions & 5 deletions

File tree

Jenkinsfile

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// To use a test branch (i.e. PR) until it lands to master
2020
// I.e. for testing library changes
2121
//@Library(value='pipeline-lib@your_branch') _
22-
@Library(value='pipeline-lib@grom72/SRE-3764') _
22+
//@Library(value='pipeline-lib@grom72/SRE-3764') _
2323

2424

2525
/* groovylint-disable-next-line CompileStatic */
@@ -644,6 +644,56 @@ pipeline {
644644
' --build-arg DAOS_PACKAGES_BUILD=no ' +
645645
' --build-arg DAOS_KEEP_SRC=yes ' +
646646
" -t ${sanitized_JOB_NAME()}-leap15" +
647+
' --build-arg POINT_RELEASE=.6 '
648+
}
649+
}
650+
steps {
651+
script {
652+
sh label: 'Install RPMs',
653+
script: './ci/rpm/install_deps.sh suse.lp156 "' + env.DAOS_RELVAL + '"'
654+
sh label: 'Build deps',
655+
script: './ci/rpm/build_deps.sh'
656+
job_step_update(
657+
sconsBuild(parallel_build: true,
658+
scons_args: sconsFaultsArgs() +
659+
' PREFIX=/opt/daos TARGET_TYPE=release',
660+
build_deps: 'yes'))
661+
sh label: 'Generate RPMs',
662+
script: './ci/rpm/gen_rpms.sh suse.lp156 "' + env.DAOS_RELVAL + '"'
663+
}
664+
}
665+
post {
666+
success {
667+
uploadNewRPMs('leap15', 'success')
668+
}
669+
unsuccessful {
670+
sh '''if [ -f config.log ]; then
671+
mv config.log config.log-leap15-gcc
672+
fi'''
673+
archiveArtifacts artifacts: 'config.log-leap15-gcc',
674+
allowEmptyArchive: true
675+
}
676+
cleanup {
677+
uploadNewRPMs('leap15', 'cleanup')
678+
job_status_update()
679+
}
680+
}
681+
}
682+
stage('Build on Leap 15.5') {
683+
when {
684+
beforeAgent true
685+
expression { !skip_build_stage('leap15') }
686+
}
687+
agent {
688+
dockerfile {
689+
filename 'utils/docker/Dockerfile.leap.15'
690+
label 'docker_runner'
691+
additionalBuildArgs dockerBuildArgs(repo_type: 'stable',
692+
parallel_build: true,
693+
deps_build: false) +
694+
' --build-arg DAOS_PACKAGES_BUILD=no ' +
695+
' --build-arg DAOS_KEEP_SRC=yes ' +
696+
" -t ${sanitized_JOB_NAME()}-leap15.5" +
647697
' --build-arg POINT_RELEASE=.5 '
648698
}
649699
}

ci/parse_ci_envs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ if [ -n "${STAGE_NAME:?}" ]; then
2323
: "${REPO_SPEC:=el-9}"
2424
;;
2525
*Leap\ 15.6*|*leap15.6*|*opensuse15.6*|*sles15.6*)
26-
: "${CHROOT_NAME:=opensuse-leap-15.5-x86_64}"
27-
: "${TARGET:=leap15.5}"
26+
: "${CHROOT_NAME:=opensuse-leap-15.6-x86_64}"
27+
: "${TARGET:=leap15.6}"
2828
;;
2929
*Leap\ 15.5*|*leap15.5*|*opensuse15.5*|*sles15.5*)
3030
: "${CHROOT_NAME:=opensuse-leap-15.5-x86_64}"
@@ -39,7 +39,7 @@ if [ -n "${STAGE_NAME:?}" ]; then
3939
: "${TARGET:=leap15.3}"
4040
;;
4141
*Leap\ 15*|*leap15*|*opensuse15*|*sles15*)
42-
: "${CHROOT_NAME:=opensuse-leap-15.5-x86_64}"
42+
: "${CHROOT_NAME:=opensuse-leap-15.6-x86_64}"
4343
: "${TARGET:=leap15}"
4444
: "${REPO_SPEC:=sl-15}"
4545
;;

utils/scripts/helpers/repo-helper-leap15.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set -uex
1313
# for custom packages if present.
1414

1515
: "${REPO_FILE_URL:=}"
16-
: "${BASE_DISTRO:=opensuse/leap:15.5}"
16+
: "${BASE_DISTRO:=opensuse/leap:15.6}"
1717
: "${JENKINS_URL:=}"
1818
: "${REPOS:=}"
1919
: "${REPOSITORY_NAME:=artifactory}"

0 commit comments

Comments
 (0)