diff --git a/Jenkinsfile b/Jenkinsfile index 63e4e16..8a517b6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -33,13 +33,25 @@ agent any } } - stage('Building artifact') { - steps { - sh ''' - ''' - } + stage('Build Artifact') { + when { + expression { + currentBuild.result == null || currentBuild.result == 'SUCCESS' + } + } + steps { + sh ''' + python setup.py bdist_wheel + ''' + } + post { + always { + // Archive unit tests for the future + archiveArtifacts allowEmptyArchive: true, artifacts: 'dist/*whl', fingerprint: true) + } + } + } - } stage('Storing Artifact') { steps { sh ''' diff --git a/requirements.txt b/requirements.txt index 8f48dcd..dac9f82 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,3 +5,4 @@ Jinja2==2.10 MarkupSafe==1.1.0 Werkzeug==0.14.1 xmlrunner==1.7.7 +wheel==0.32.2