snapshot of https://github.com/jitsi/jicofo.git @ 9ab59aa3d348e282da89da2c9f11ecbecd3f7b79 (2026-09-15)
Some checks failed
Java CI with Maven / Java 21 (push) Failing after 4m41s
Java CI with Maven / Java 17 (push) Failing after 4m42s

This commit is contained in:
upstream-mirror
2026-09-15 16:13:53 +05:00
commit fcbc274d01
275 changed files with 41230 additions and 0 deletions

71
resources/build_deb_package.sh Executable file
View File

@@ -0,0 +1,71 @@
#!/bin/bash
set -x
set -e
# Make sure you have the following environment variables set, example:
# export DEBFULLNAME="Jitsi Team"
# export DEBEMAIL="dev@jitsi.org"
# You need package devscripts installed (command dch).
echo "==================================================================="
echo " Building DEB packages... "
echo "==================================================================="
SCRIPT_FOLDER=$(dirname "$0")
cd "$SCRIPT_FOLDER/.."
# We are still using old version numbers
VERSIONMAJ="1.0"
VERSION=$VERSIONMAJ-$BUILD_NUMBER
# TODO: uncoment the following and move to the new numbering scheme
## Let's get version from maven
#MVNVER=$(xmllint --xpath "/*[local-name()='project']/*[local-name()='version']/text()" pom.xml)
#TAG_NAME="v${MVNVER/-SNAPSHOT/}"
#echo "Current tag name: $TAG_NAME"
#if ! git rev-parse "$TAG_NAME" >/dev/null 2>&1
#then
# git tag -a "$TAG_NAME" -m "Tagged automatically by Jenkins"
# git push origin "$TAG_NAME"
#else
# echo "Tag: $TAG_NAME already exists."
#fi
#VERSION_FULL=$(git describe --match "v[0-9\.]*" --long)
#echo "Full version: ${VERSION_FULL}"
#VERSION=${VERSION_FULL:1}
echo "Package version: ${VERSION}"
REV=$(git log --pretty=format:'%h' -n 1)
dch -v "$VERSION-1" "Build from git. $REV"
dch -D unstable -r ""
# sets the version in the pom file so it will propagte to resulting jar
mvn versions:set -DnewVersion="${VERSION}"
# Install jicofo-common and jicofo-selector to the local maven repo because they
# are currently not published anywhere else.
mvn install
# We need to make sure all dependencies are downloaded before start building
# the debian package
mvn dependency:resolve
# now build the deb
dpkg-buildpackage -tc -us -uc -A
# clean the current changes as dch had changed the change log
git checkout debian/changelog
git checkout pom.xml
echo "Here are the resulting files in $(pwd ..)"
echo "-----"
ls -l ../{*.changes,*.deb,*.buildinfo}
echo "-----"
# Let's try deploying
cd ..
([ ! -x deploy.sh ] || ./deploy.sh "jicofo" ${BUILD_NUMBER} )