ci(titan-iac): install git in runner before promote stage

This commit is contained in:
codex 2026-04-19 22:33:22 -03:00
parent b848e6b6d8
commit 7be6cfb9cb
2 changed files with 18 additions and 2 deletions

10
Jenkinsfile vendored
View File

@ -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') {

View File

@ -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') {