Stabilize Jenkins pipeline: remove brittle pylint plugins and skip-checks
This commit is contained in:
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'external-agent-1 || external-agent-2' }
|
agent any
|
||||||
options {
|
options {
|
||||||
disableConcurrentBuilds()
|
disableConcurrentBuilds()
|
||||||
skipDefaultCheckout(true)
|
skipDefaultCheckout(true)
|
||||||
@@ -54,9 +54,9 @@ pipeline {
|
|||||||
cp "${JOB_BASE_NAME}/ocyan.json" "${JOB_BASE_NAME}/${JOB_BASE_NAME}.json"
|
cp "${JOB_BASE_NAME}/ocyan.json" "${JOB_BASE_NAME}/${JOB_BASE_NAME}.json"
|
||||||
pip install ruff vdt.versionplugin.wheel
|
pip install ruff vdt.versionplugin.wheel
|
||||||
pip install --upgrade "setuptools==69.5.1" wheel
|
pip install --upgrade "setuptools==69.5.1" wheel
|
||||||
manage.py migrate --no-input --skip-checks
|
manage.py migrate --no-input
|
||||||
manage.py loaddemodata --skip-checks || true
|
manage.py loaddemodata || true
|
||||||
manage.py collectstatic --no-input --verbosity=0 --skip-checks
|
manage.py collectstatic --no-input --verbosity=0
|
||||||
pip install "httpx<0.28"
|
pip install "httpx<0.28"
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
@@ -65,9 +65,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
. .venv/bin/activate
|
. .venv/bin/activate
|
||||||
pip install coverage
|
pip install coverage ruff
|
||||||
pip install ruff
|
|
||||||
cat mandelstudio/ocyan.json | python3 -m json.tool 1>/dev/null
|
|
||||||
make lint
|
make lint
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user