added Jenkinsfile

This commit is contained in:
2023-09-07 06:04:26 +08:00
parent 707cf492d0
commit ba70c66bc5

24
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,24 @@
import java.nio.file.Path
import java.nio.file.Files
pipeline {
agent any
stages {
stage("Build") {
steps {
sh "python3 -m venv venv"
sh "venv/bin/python -m pip install -r requirements.txt"
sh "venv/bin/python -m build"
}
}
stage("Archive") {
steps {
archiveArtifacts artifacts: 'dist/*.whl,dist/*.tar.gz',
allowEmptyArchive: true,
fingerprint: true,
onlyIfSuccessful: true
}
}
}
}