- new_docker_build.sh is now the Release 2 scope driver (4 build groups, 61 targets, Ninja/RelWithDebInfo, /repo mount, 22-test ctest, DEB via rpmbuild/make_rpm_ubuntu26_release2.py); the separate new_docker_build_release2.sh driver is removed. - The Docker image recipe is the in-tree Dockerfile (single source of truth): Ubuntu 26.04 + apt deps (incl. libbz2-dev, libkf6texttemplate-dev) + Qt 6.10.2 via aqtinstall + KDReports from source + ENV PATH/CMAKE_PREFIX_PATH. The driver builds the image from it when it is missing; --no-prebuilt-image now forces a rebuild (the in-container apt path and the inline recipe are gone). Default image: legatus-qt6:1.0. - rpmbuild/make_rpm_ubuntu26_release2.py: bundle new_docker_build.sh in the build-pipeline DEB. - jenkins-ci-rme/release-16-10-2026.sh: drop the --build-prebuilt-image step (no longer an option; the driver auto-builds the image when missing). - README.md: document the Release 2 driver, the 22-test ctest baseline, the real DEB layout, the options and the known quirks.
74 lines
2.5 KiB
Bash
74 lines
2.5 KiB
Bash
#!/usr/bin/env bash
|
|
#
|
|
# Local release pipeline for the Qt6-migrated legatus Release 2 scope
|
|
# (AP3 Lts services + core stack, AP4 DDS, AP9 Viewer/tools/generators).
|
|
#
|
|
# Runs the in-tree new_docker_build.sh (Release 2 driver):
|
|
# - builds the prebuilt Docker image from the in-tree Dockerfile
|
|
# when the image is not present yet
|
|
# - builds the release scope, runs ctest and produces the release DEB
|
|
# packages with the in-tree rpmbuild script
|
|
# - collects the lcov code-coverage report (--run-coverage; set
|
|
# DRYRUN_COVERAGE=OFF to skip)
|
|
#
|
|
# The DEB packages land in ${WORKSPACE}/rpms/${PROJECT}/${OS_VERSION}/
|
|
# (Jenkins-style layout; locally WORKSPACE is the pipeline root).
|
|
#
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
LEGATUS_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
|
PIPELINE_ROOT="${LEGATUS_ROOT}"
|
|
|
|
# Release build configuration (Jenkins-style variables)
|
|
export WORKSPACE="${PIPELINE_ROOT}"
|
|
export PROJECT="${PROJECT:-guez}"
|
|
export OS_VERSION="${OS_VERSION:-26.04}"
|
|
export LTS_VERSION="${LTS_VERSION:-1.0}"
|
|
export GUEZ_MODE="${GUEZ_MODE:-ON}"
|
|
export BUILD_NUMBER="${BUILD_NUMBER:-$(date +%Y%m%d-%H%M%S)}"
|
|
export BUILD_TAG="${BUILD_TAG:-release-qt6-first}"
|
|
|
|
DOCKER_IMAGE="${DOCKER_IMAGE:-legatus-qt6:1.0}"
|
|
|
|
log_info() {
|
|
printf 'INFO: %s\n' "$*"
|
|
}
|
|
|
|
log_info "=== Qt6 Release Pipeline ==="
|
|
log_info "Pipeline root: ${PIPELINE_ROOT}"
|
|
log_info "Legatus root: ${LEGATUS_ROOT}"
|
|
log_info "Docker image: ${DOCKER_IMAGE}"
|
|
log_info "Build number: ${BUILD_NUMBER}"
|
|
log_info "Build tag: ${BUILD_TAG}"
|
|
log_info "Package output: ${WORKSPACE}/rpms/${PROJECT}/${OS_VERSION}/"
|
|
|
|
cd "${LEGATUS_ROOT}"
|
|
|
|
# (The driver auto-builds the prebuilt image from the in-tree Dockerfile
|
|
# when the image is not present yet.)
|
|
|
|
# Release 2 scope build + ctest + DEB production (in-tree rpmbuild)
|
|
bash ./new_docker_build.sh \
|
|
--docker-image "${DOCKER_IMAGE}" \
|
|
--run-jenkins-builder \
|
|
--package-output-dir "${WORKSPACE}/rpms/${PROJECT}/${OS_VERSION}/" \
|
|
--project "${PROJECT}" \
|
|
--lts-version "${LTS_VERSION}" \
|
|
--build-number "${BUILD_NUMBER}" \
|
|
--build-tag "${BUILD_TAG}"
|
|
|
|
# Code coverage (lcov) - mirrors the Jenkins Coverage stage. Set
|
|
# DRYRUN_COVERAGE=OFF for a fast local DEB-only run.
|
|
DRYRUN_COVERAGE="${DRYRUN_COVERAGE:-ON}"
|
|
if [[ "${DRYRUN_COVERAGE}" == "ON" ]]; then
|
|
bash ./new_docker_build.sh \
|
|
--docker-image "${DOCKER_IMAGE}" \
|
|
--run-coverage \
|
|
--coverage-output-dir "${WORKSPACE}/coverage/${PROJECT}/${OS_VERSION}"
|
|
else
|
|
log_info "Coverage skipped (DRYRUN_COVERAGE=OFF)"
|
|
fi
|
|
|
|
log_info "=== Release Pipeline Complete ==="
|