diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..f3bba8d --- /dev/null +++ b/Jenkinsfile @@ -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 + } + } + } +} +