kapitanbooru-uploader/Jenkinsfile
Kapitan 5a97d610a7
Some checks failed
Gitea/kapitanbooru-uploader/pipeline/head There was a failure building this commit
actually works
Now with tagger

Miejsce na zdjęcie

Linki do wiki

Zapis ustawień

Tagger działa w tle

Kolorujemy pliki po ratingu

Tagger cache

Tagi w bazie

Pobranie implikacji tagów

Autocomplete

Podział na pliki i skrypty + nowe API

Structure for package

Version 0.1.0
2025-02-25 00:05:13 +01:00

39 lines
1.1 KiB
Groovy

pipeline {
agent { label 'Pi4' } // Use Raspberry Pi 4 agent
environment {
PIP_EXTRA_INDEX_URL = 'http://localhost:8090/simple/' // Local PyPI repo
PACKAGE_NAME = 'kapitanbooru_uploader' // Your package name
}
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Setup Python') {
steps {
sh 'python3.13 -m venv venv' // Create a virtual environment
sh '. venv/bin/activate && pip install --upgrade pip build twine'
}
}
stage('Build Package') {
steps {
sh '. venv/bin/activate && python -m build' // Builds the package
}
}
stage('Publish to Local PyPI') {
steps {
sh '. venv/bin/activate && twine upload --repository-url http://localhost:8090/ dist/*'
}
}
}
post {
cleanup {
sh 'rm -rf venv dist build *.egg-info' // Clean up build artifacts
}
}
}