diff options
-rw-r--r-- | .jenkins/build.sh | 6 | ||||
-rw-r--r-- | Jenkinsfile | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/.jenkins/build.sh b/.jenkins/build.sh new file mode 100644 index 0000000..312e2ab --- /dev/null +++ b/.jenkins/build.sh @@ -0,0 +1,6 @@ +#!/bin/bash +source ${WORKSPACE}/.jenkins/use_conda.sh + +python --version + +python setup.py install diff --git a/Jenkinsfile b/Jenkinsfile index 2ebef0f..447f0a7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,15 +5,12 @@ pipeline { stage('Bootstrap') { steps { sh '.jenkins/install_conda.sh' - sh 'PATH=${WORKSPACE}/mc3/bin:$PATH source activate root' - sh '${WORKSPACE}/mc3/bin/python --version' - sh 'python --version' } } stage('Build') { steps { echo 'Building..' - sh '${HOME}/mc3/bin/python setup.py install' + sh '.jenkins/build.sh' } } stage('Test') { |