-
Notifications
You must be signed in to change notification settings - Fork 28
/
Jenkinsfile
42 lines (37 loc) · 1.07 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
pipeline {
agent any
environment {
FULL_DOCKER_IMAGE_NAME = 'thevirtualbrain/tvb-run'
PY3_TAG = 'tvb-library-py3'
}
stages {
stage ('Build Pypi package for Python 3') {
agent {
docker {
image '${FULL_DOCKER_IMAGE_NAME}:${PY3_TAG}'
}
}
steps {
sh '''#!/bin/bash
source activate tvb-run
python setup.py sdist
python setup.py bdist_wheel
'''
archiveArtifacts artifacts: 'dist/*'
}
}
}
post {
changed {
mail to: '[email protected]',
subject: "Jenkins Pipeline ${currentBuild.fullDisplayName} changed status",
body: """
Result: ${currentBuild.result}
Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'
Check console output at ${env.BUILD_URL}"""
}
success {
echo 'Build finished successfully'
}
}
}