actually works
Some checks failed
Gitea/kapitanbooru-uploader/pipeline/head There was a failure building this commit
Some checks failed
Gitea/kapitanbooru-uploader/pipeline/head There was a failure building this commit
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
This commit is contained in:
38
Jenkinsfile
vendored
Normal file
38
Jenkinsfile
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user