added Jenkinsfile
This commit is contained in:
24
Jenkinsfile
vendored
Normal file
24
Jenkinsfile
vendored
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Reference in New Issue
Block a user