Skip to content

Commit f69eac9

Browse files
committed
[CI] issue:HPCINFRA-3086 improve deb package build time
Signed-off-by: Daniel Pressler <[email protected]>
1 parent 121cfe9 commit f69eac9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/jenkins_tests/rpm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if [ $opt_srcrpm -eq 1 ]; then
6666
if [ $opt_rpm -eq 1 ]; then
6767
test_exec="env RPM_BUILD_NCPUS=${NPROC} rpmbuild -bs $rpmmacros $rpmopts $rpmspec"
6868
else
69-
test_exec="dpkg-buildpackage -us -uc -S"
69+
test_exec="dpkg-buildpackage --jobs=$NPROC -us -uc -S"
7070
fi
7171
do_check_result "$test_exec" "$test_id" "srcrpm" "$rpm_tap" "${rpm_dir}/rpm-${test_id}"
7272
test_id=$((test_id+1))
@@ -76,7 +76,7 @@ if [ $opt_binrpm -eq 1 ]; then
7676
if [ $opt_rpm -eq 1 ]; then
7777
test_exec="env RPM_BUILD_NCPUS=${NPROC} rpmbuild -bb --define='configure_options $jenkins_test_custom_configure' $rpmmacros $rpmopts $rpmspec"
7878
else
79-
test_exec="env configure_options=\"$jenkins_test_custom_configure\" dpkg-buildpackage -us -uc -b"
79+
test_exec="env configure_options=\"$jenkins_test_custom_configure\" dpkg-buildpackage --jobs=$NPROC -us -uc -b"
8080
fi
8181
do_check_result "$test_exec" "$test_id" "binrpm" "$rpm_tap" "${rpm_dir}/rpm-${test_id}"
8282
test_id=$((test_id+1))

0 commit comments

Comments
 (0)