Add launch pipeline and idea marketplace seed commands
This commit is contained in:
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@@ -6,6 +6,13 @@ pipeline {
|
||||
disableConcurrentBuilds()
|
||||
skipDefaultCheckout(true)
|
||||
}
|
||||
parameters {
|
||||
booleanParam(
|
||||
name: 'RUN_DEMO_PURGE',
|
||||
defaultValue: false,
|
||||
description: 'Run a one-time demo catalogue purge before the normal idea marketplace seed and launch prep.'
|
||||
)
|
||||
}
|
||||
environment {
|
||||
PYENVPIPELINE_VIRTUALENV = '1'
|
||||
GIT_SSH_COMMAND = 'ssh -o StrictHostKeyChecking=accept-new'
|
||||
@@ -81,8 +88,14 @@ PY
|
||||
cp "${JOB_BASE_NAME}/ocyan.json" "${JOB_BASE_NAME}/${JOB_BASE_NAME}.json"
|
||||
pip install ruff vdt.versionplugin.wheel
|
||||
pip install --upgrade "setuptools==69.5.1" wheel
|
||||
python3 scripts/validate_payment_provider_config.py
|
||||
manage.py migrate --no-input --skip-checks
|
||||
manage.py purge_demo_data --keep-only-idea-products --skip-checks
|
||||
if [ "${RUN_DEMO_PURGE}" = "true" ]; then
|
||||
manage.py purge_demo_data
|
||||
fi
|
||||
manage.py seed_idea_marketplace
|
||||
manage.py prepare_idea_marketplace_launch --apply-homepage-copy --purge-demo-pages
|
||||
manage.py validate_idea_marketplace_launch
|
||||
manage.py collectstatic --no-input --verbosity=0
|
||||
pip install "httpx<0.28"
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user