Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion vars/getChrootName.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ String call(String distro) {

return[ 'centos7': 'centos+epel-7-x86_64',
'el8': 'rocky+epel-8-x86_64',
'leap15': 'opensuse-leap-15.5-x86_64',
'leap15': 'opensuse-leap-15.6-x86_64',
'ubuntu2004': ''][distro]

}
18 changes: 9 additions & 9 deletions vars/packageBuildingPipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ void call(Map pipeline_args) {
}
}
} //stage('Build RPM on EL 9')
stage('Build RPM on Leap 15.5') {
stage('Build RPM on Leap 15.6') {
when {
beforeAgent true
expression { !skipStage() && distros.contains('leap15') }
Expand All @@ -548,26 +548,26 @@ void call(Map pipeline_args) {
' --cap-add=SYS_ADMIN' +
' --privileged=true' +
' -v /scratch:/scratch'
additionalBuildArgs dockerBuildArgs() + '--build-arg FVERSION=37'
additionalBuildArgs dockerBuildArgs() + '--build-arg FVERSION=42'
}
}
steps {
sh label: 'Build package',
script: '''rm -rf artifacts/leap15/
mkdir -p artifacts/leap15/
make CHROOT_NAME="opensuse-leap-15.5-x86_64" ''' +
make CHROOT_NAME="opensuse-leap-15.6-x86_64" ''' +
'DISTRO_VERSION=' + parseStageInfo()['distro_version'] + ' ' +
pipeline_args.get('make args', '') + ' chrootbuild ' +
pipeline_args.get('add_make_targets', '')
}
post {
success {
rpmlintMockResults('opensuse-leap-15.5-x86_64',
rpmlintMockResults('opensuse-leap-15.6-x86_64',
pipeline_args.get('rpmlint_rpms_allow_errors', false),
pipeline_args.get('rpmlint_rpms_skip', false),
pipeline_args.get('make args', ''))
sh label: 'Collect artifacts',
script: '''(cd /var/lib/mock/opensuse-leap-15.5-x86_64/result/ &&
script: '''(cd /var/lib/mock/opensuse-leap-15.6-x86_64/result/ &&
cp -r . $OLDPWD/artifacts/leap15/)\n''' +
pipeline_args.get('add_archiving_cmds', '').replace('<distro>',
'leap15') +
Expand All @@ -584,7 +584,7 @@ void call(Map pipeline_args) {
}
unsuccessful {
sh label: 'Build Log',
script: '''mockroot=/var/lib/mock/opensuse-leap-15.5-x86_64
script: '''mockroot=/var/lib/mock/opensuse-leap-15.6-x86_64
ls -l $mockroot/result/
cat $mockroot/result/{root,build}.log
artdir=$PWD/artifacts/leap15
Expand All @@ -594,9 +594,9 @@ void call(Map pipeline_args) {
}
always {
scrubSecret(pipeline_args['secret'],
'/var/lib/mock/opensuse-leap-15.5-x86_64/result/build.log')
'/var/lib/mock/opensuse-leap-15.6-x86_64/result/build.log')
sh label: 'Collect config.log(s)',
script: '(if cd /var/lib/mock/opensuse-leap-15.5-x86_64/root/builddir/build/' +
script: '(if cd /var/lib/mock/opensuse-leap-15.6-x86_64/root/builddir/build/' +
'''BUILD/*/; then
find . -name configure -printf %h\\\\n | \
while read dir; do
Expand All @@ -613,7 +613,7 @@ void call(Map pipeline_args) {
archiveArtifacts artifacts: 'artifacts/leap15/**'
}
}
} //stage('Build RPM on Leap 15')
} //stage('Build RPM on Leap 15.6')
stage('Build DEB on Ubuntu 20.04') {
when {
beforeAgent true
Expand Down
16 changes: 8 additions & 8 deletions vars/packageBuildingPipelineDAOS.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ void call(Map pipeline_args) {
}
}
} //stage('Build RPM on EL 9')
stage('Build RPM on Leap 15.4') {
stage('Build RPM on Leap 15.6') {
when {
beforeAgent true
expression { !skipStage() && distros.contains('leap15') }
Expand All @@ -549,26 +549,26 @@ void call(Map pipeline_args) {
' --cap-add=SYS_ADMIN' +
' --privileged=true' +
' -v /scratch:/scratch'
additionalBuildArgs dockerBuildArgs() + '--build-arg FVERSION=37'
additionalBuildArgs dockerBuildArgs() + '--build-arg FVERSION=42'
}
}
steps {
sh label: 'Build package',
script: '''rm -rf artifacts/leap15/
mkdir -p artifacts/leap15/
make CHROOT_NAME="opensuse-leap-15.4-x86_64" ''' +
make CHROOT_NAME="opensuse-leap-15.6-x86_64" ''' +
'DISTRO_VERSION=' + parseStageInfo()['distro_version'] + ' ' +
pipeline_args.get('make args', '') + ' chrootbuild ' +
pipeline_args.get('add_make_targets', '')
}
post {
success {
rpmlintMockResults('opensuse-leap-15.4-x86_64',
rpmlintMockResults('opensuse-leap-15.6-x86_64',
pipeline_args.get('rpmlint_rpms_allow_errors', false),
pipeline_args.get('rpmlint_rpms_skip', false),
pipeline_args.get('make args', ''))
sh label: 'Collect artifacts',
script: '''(cd /var/lib/mock/opensuse-leap-15.4-x86_64/result/ &&
script: '''(cd /var/lib/mock/opensuse-leap-15.6-x86_64/result/ &&
cp -r . $OLDPWD/artifacts/leap15/)\n''' +
pipeline_args.get('add_archiving_cmds', '').replace('<distro>',
'leap15') +
Expand All @@ -585,7 +585,7 @@ void call(Map pipeline_args) {
}
unsuccessful {
sh label: 'Build Log',
script: '''mockroot=/var/lib/mock/opensuse-leap-15.4-x86_64
script: '''mockroot=/var/lib/mock/opensuse-leap-15.6-x86_64
ls -l $mockroot/result/
cat $mockroot/result/{root,build}.log
artdir=$PWD/artifacts/leap15
Expand All @@ -595,7 +595,7 @@ void call(Map pipeline_args) {
}
always {
sh label: 'Collect config.log(s)',
script: '(if cd /var/lib/mock/opensuse-leap-15.4-x86_64/root/builddir/build/' +
script: '(if cd /var/lib/mock/opensuse-leap-15.6-x86_64/root/builddir/build/' +
'''BUILD/*/; then
find . -name configure -printf %h\\\\n | \
while read dir; do
Expand All @@ -612,7 +612,7 @@ void call(Map pipeline_args) {
archiveArtifacts artifacts: 'artifacts/leap15/**'
}
}
} //stage('Build RPM on Leap 15')
} //stage('Build RPM on Leap 15.6')
stage('Build DEB on Ubuntu 20.04') {
when {
beforeAgent true
Expand Down
16 changes: 8 additions & 8 deletions vars/packageBuildingPipelineDAOSTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ void call(Map pipeline_args) {
}
}
} //stage('Build RPM on EL 9')
stage('Build RPM on Leap 15.5') {
stage('Build RPM on Leap 15.6') {
when {
beforeAgent true
expression { !skipStage() && distros.contains('leap15') }
Expand All @@ -552,26 +552,26 @@ void call(Map pipeline_args) {
' --cap-add=SYS_ADMIN' +
' --privileged=true' +
' -v /scratch:/scratch'
additionalBuildArgs dockerBuildArgs() + '--build-arg FVERSION=37'
additionalBuildArgs dockerBuildArgs() + '--build-arg FVERSION=42'
}
}
steps {
sh label: 'Build package',
script: '''rm -rf artifacts/leap15/
mkdir -p artifacts/leap15/
make CHROOT_NAME="opensuse-leap-15.5-x86_64" ''' +
make CHROOT_NAME="opensuse-leap-15.6-x86_64" ''' +
'DISTRO_VERSION=' + parseStageInfo()['distro_version'] + ' ' +
pipeline_args.get('make args', '') + ' chrootbuild ' +
pipeline_args.get('add_make_targets', '')
}
post {
success {
rpmlintMockResults('opensuse-leap-15.5-x86_64',
rpmlintMockResults('opensuse-leap-15.6-x86_64',
pipeline_args.get('rpmlint_rpms_allow_errors', false),
pipeline_args.get('rpmlint_rpms_skip', false),
pipeline_args.get('make args', ''))
sh label: 'Collect artifacts',
script: '''(cd /var/lib/mock/opensuse-leap-15.5-x86_64/result/ &&
script: '''(cd /var/lib/mock/opensuse-leap-15.6-x86_64/result/ &&
cp -r . $OLDPWD/artifacts/leap15/)\n''' +
pipeline_args.get('add_archiving_cmds', '').replace('<distro>',
'leap15') +
Expand All @@ -588,7 +588,7 @@ void call(Map pipeline_args) {
}
unsuccessful {
sh label: 'Build Log',
script: '''mockroot=/var/lib/mock/opensuse-leap-15.5-x86_64
script: '''mockroot=/var/lib/mock/opensuse-leap-15.6-x86_64
ls -l $mockroot/result/
cat $mockroot/result/{root,build}.log
artdir=$PWD/artifacts/leap15
Expand All @@ -598,7 +598,7 @@ void call(Map pipeline_args) {
}
always {
sh label: 'Collect config.log(s)',
script: '(if cd /var/lib/mock/opensuse-leap-15.5-x86_64/root/builddir/build/' +
script: '(if cd /var/lib/mock/opensuse-leap-15.6-x86_64/root/builddir/build/' +
'''BUILD/*/; then
find . -name configure -printf %h\\\\n | \
while read dir; do
Expand All @@ -615,7 +615,7 @@ void call(Map pipeline_args) {
archiveArtifacts artifacts: 'artifacts/leap15/**'
}
}
} //stage('Build RPM on Leap 15.5')
} //stage('Build RPM on Leap 15.6')
stage('Build DEB on Ubuntu 20.04') {
when {
beforeAgent true
Expand Down
3 changes: 1 addition & 2 deletions vars/parseStageInfo.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ Map call(Map config = [:]) {
new_ci_target = cachedCommitPragma('LEAP15-target', result['target'])
} else if (stage_name.contains('Leap 15.6')) {
result['target'] = 'leap15'
// Until a mock opensuse-leap-15.6-x86-64.cfg is available provision with 15.5
result['distro_version'] = cachedCommitPragma('LEAP15-version', '15.5')
result['distro_version'] = cachedCommitPragma('LEAP15-version', '15.6')
new_ci_target = cachedCommitPragma('LEAP15-target', result['target'])
} else if (stage_name.contains('Leap 15')) {
result['target'] = 'leap15'
Expand Down