25 lines
639 B
Groovy
25 lines
639 B
Groovy
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|