From 7be6cfb9cb28d9ffb525063368cb212f108a133f Mon Sep 17 00:00:00 2001 From: codex Date: Sun, 19 Apr 2026 22:33:22 -0300 Subject: [PATCH] ci(titan-iac): install git in runner before promote stage --- Jenkinsfile | 10 +++++++++- ci/Jenkinsfile.titan-iac | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e48eb087..2913196d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,7 +41,15 @@ spec: } stage('Install deps') { steps { - sh 'pip install --no-cache-dir -r ci/requirements.txt' + sh ''' + set -eu + if ! command -v git >/dev/null 2>&1; then + apt-get update + apt-get install -y --no-install-recommends git ca-certificates + rm -rf /var/lib/apt/lists/* + fi + pip install --no-cache-dir -r ci/requirements.txt + ''' } } stage('Collect SonarQube evidence') { diff --git a/ci/Jenkinsfile.titan-iac b/ci/Jenkinsfile.titan-iac index cb2626f2..84e22242 100644 --- a/ci/Jenkinsfile.titan-iac +++ b/ci/Jenkinsfile.titan-iac @@ -40,7 +40,15 @@ spec: } stage('Install deps') { steps { - sh 'pip install --no-cache-dir -r ci/requirements.txt' + sh ''' + set -eu + if ! command -v git >/dev/null 2>&1; then + apt-get update + apt-get install -y --no-install-recommends git ca-certificates + rm -rf /var/lib/apt/lists/* + fi + pip install --no-cache-dir -r ci/requirements.txt + ''' } } stage('Collect SonarQube evidence') {