1 Commits

Author SHA1 Message Date
e232b78366 Update
All checks were successful
OB/TallerCiCd/pipeline/pr-main This commit looks good
CI-Multi/pipeline/pr-main This commit looks good
2026-01-17 11:44:57 +01:00
2 changed files with 7 additions and 18 deletions

View File

@@ -38,12 +38,11 @@ pipeline {
agent {
docker {
image 'python:3.11-slim'
args '-u root'
}
}
environment {
HOME = "${WORKSPACE}"
PIP_CACHE_DIR = "${WORKSPACE}/.cache/pip"
PYTHONDONTWRITEBYTECODE = 1
}
@@ -51,13 +50,12 @@ pipeline {
dir('backend') {
sh '''
set -e
mkdir -p "$PIP_CACHE_DIR" "$WORKSPACE/.cache/pytest"
python -m venv .venv
. .venv/bin/activate
pip install --upgrade pip
pip install -r requirements-dev.txt
ruff check app tests
pytest -o cache_dir="$WORKSPACE/.cache/pytest"
pytest
'''
}
}
@@ -73,15 +71,10 @@ pipeline {
image 'node:20-slim'
}
}
environment {
HOME = "${WORKSPACE}"
NPM_CONFIG_CACHE = "${WORKSPACE}/.cache/npm"
}
steps {
dir('frontend') {
sh '''
set -e
mkdir -p "$NPM_CONFIG_CACHE"
npm install --no-progress --no-audit --prefer-offline
npm run check
npm run build
@@ -90,15 +83,11 @@ pipeline {
}
}
}
post {
always {
script {
node {
cleanWs()
stage('Cleanup') {
agent any
steps {
cleanWs()
}
}
}
}
}

View File

@@ -46,5 +46,5 @@ def random_price(item: str) -> Dict:
def prices_payload() -> Dict:
return {
"items": [random_price(item) for item in PRICE_RANGES.keys()],
"disclaimer": "Depende de como pilles al de cafete.",
"disclaimer": "Este es un cambio menor a fin de probar Webhooks.",
}