Skip to content

Commit 591ab14

Browse files
authored
Fix debian package build v3.10 (#1138)
* fix debian-package-build task, use debian12-latest-small distro * configure git user/email during debian-package-build
1 parent 135d66d commit 591ab14

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.evergreen/debian_package_build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ if [ ! -z "${DEB_BUILD_PROFILES}" ]; then
2020
echo "DEB_BUILD_PROFILES was set; building with profiles: ${DEB_BUILD_PROFILES}"
2121
fi
2222

23+
git config user.email "[email protected]"
24+
git config user.name "Evergreen Build"
25+
2326
if [ "${IS_PATCH}" = "true" ]; then
2427
git diff HEAD > ../upstream.patch
2528
git clean -fdx
@@ -54,6 +57,7 @@ cp -a mongo-cxx-driver ./unstable-chroot/tmp/
5457
sudo DEB_BUILD_PROFILES="${DEB_BUILD_PROFILES}" chroot ./unstable-chroot /bin/bash -c "
5558
(apt-get install -y ca-certificates cmake debhelper doxygen git libboost-dev libsasl2-dev libsnappy-dev libssl-dev libutf8proc-dev pkgconf zlib1g-dev build-essential curl fakeroot furo git-buildpackage python3-sphinx python3-sphinx-design && \
5659
mkdir /tmp/mongo-c-driver && \
60+
cd /tmp/mongo-c-driver && \
5761
curl -o deb.tar.gz -L https://s3.amazonaws.com/mciuploads/mongo-c-driver/master/mongo-c-driver-debian-packages-latest.tar.gz && \
5862
tar zxvf deb.tar.gz && \
5963
apt-get install -y ./*.deb && \

.mci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ tasks:
965965
./build/hello_mongocxx
966966
967967
- name: debian-package-build
968-
run_on: ubuntu1804-test
968+
run_on: debian12-latest-small
969969
commands:
970970
- func: "setup"
971971
- command: shell.exec
@@ -989,7 +989,7 @@ tasks:
989989
display_name: "deb.tar.gz"
990990

991991
- name: debian-package-build-mnmlstc
992-
run_on: ubuntu1804-test
992+
run_on: debian12-latest-small
993993
commands:
994994
- func: "setup"
995995
- command: shell.exec

0 commit comments

Comments
 (0)