From d5d41d930e7f470fde170663d4cfd7d424fe4679 Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Sun, 13 Sep 2026 13:02:31 +0200 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 99 +++++++++++++++++++++++++++++------------------------ 1 file changed, 54 insertions(+), 45 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c354f17..a09422f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,7 +14,7 @@ pipeline { checkout scm sh ''' - set -e + set -eu git submodule sync --recursive git submodule update --init --recursive @@ -23,68 +23,76 @@ pipeline { } stage('Setup Environment') { - steps { - sh ''' - set -eu + steps { + sh ''' + set -eu - # --------------------------------------------------------- - # uv - # --------------------------------------------------------- + # --------------------------------------------------------- + # uv + # --------------------------------------------------------- - if ! command -v uv >/dev/null 2>&1; then - echo "uv not found — installing it..." + if ! command -v uv >/dev/null 2>&1; then + echo "uv not found — installing it..." - if ! command -v cargo-binstall >/dev/null 2>&1; then - echo "cargo-binstall not found — installing it..." - cargo install cargo-binstall - fi + if ! command -v cargo-binstall >/dev/null 2>&1; then + echo "cargo-binstall not found — installing it..." + cargo install cargo-binstall + fi - cargo binstall --no-confirm uv - else - echo "uv already installed." - fi + cargo binstall --no-confirm uv + else + echo "uv already installed." + fi - echo "Using:" - uv --version + echo "Using:" + uv --version - # --------------------------------------------------------- - # SQLite - # --------------------------------------------------------- + # --------------------------------------------------------- + # SQLite + # --------------------------------------------------------- - if ! command -v sqlite3 >/dev/null 2>&1; then - echo "sqlite3 not found — installing it..." - pkg install -y sqlite3 - else - echo "sqlite3 already installed." - fi + if ! command -v sqlite3 >/dev/null 2>&1; then + echo "sqlite3 not found — installing it..." + pkg install -y sqlite3 + else + echo "sqlite3 already installed." + fi - sqlite3 --version + echo "SQLite:" + sqlite3 --version - # --------------------------------------------------------- - # Python environment - # --------------------------------------------------------- + # --------------------------------------------------------- + # Python environment + # --------------------------------------------------------- - rm -rf "${VENV}" + rm -rf "${VENV}" - echo "Creating virtual environment..." - uv venv "${VENV}" + echo "Creating virtual environment..." + uv venv "${VENV}" - echo "Installing CI Python dependencies..." - uv pip install \ - --python "${VENV}/bin/python" \ - -r tools/requirements-ci.txt + echo "Installing CI Python dependencies..." + uv pip install \ + --python "${VENV}/bin/python" \ + -r tools/requirements-ci.txt + + echo + echo "Python:" + "${VENV}/bin/python" --version + + echo + echo "Environment ready." + ''' + } + } - echo - echo "Python:" - "${VENV}/bin/python" --version - ''' - } -} stage('Check Database Integrity') { steps { sh ''' set -eu + echo "Running Ravenous database integrity checks..." + echo + "${VENV}/bin/python" \ tools/check_databases.py ''' @@ -131,6 +139,7 @@ pipeline { always { sh ''' + echo "Cleaning CI environment..." rm -rf .venv ''' }