diff options
author | Tomas Kulhanek <tomas.kulhanek@stfc.ac.uk> | 2019-01-22 12:52:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-22 12:52:34 +0000 |
commit | 84811ac4418fb7f72dfcb7cb8329cf05ed0fb538 (patch) | |
tree | f83cf2c0e29f3eb098ed71b9788bdabce9fabb09 /build | |
parent | 19fce0003d558b4eb9dadfb6aef7c79deef13489 (diff) | |
download | regularization-84811ac4418fb7f72dfcb7cb8329cf05ed0fb538.tar.gz regularization-84811ac4418fb7f72dfcb7cb8329cf05ed0fb538.tar.bz2 regularization-84811ac4418fb7f72dfcb7cb8329cf05ed0fb538.tar.xz regularization-84811ac4418fb7f72dfcb7cb8329cf05ed0fb538.zip |
Update jenkins-build.sh
Diffstat (limited to 'build')
-rwxr-xr-x | build/jenkins-build.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build/jenkins-build.sh b/build/jenkins-build.sh index 6c863c0..a808699 100755 --- a/build/jenkins-build.sh +++ b/build/jenkins-build.sh @@ -43,13 +43,15 @@ conda build Wrappers/Python/conda-recipe export REG_FILES=`conda build Wrappers/Python/conda-recipe --output` # REG_FILES variable should contain output files echo files created: $REG_FILES -#upload to anaconda + +# upload to anaconda only if token is defined +# and TODO pull request not to upload if [[ -n ${CCPI_CONDA_TOKEN} ]] then conda install anaconda-client while read -r outfile; do #if 0 commit after tag then call anaconda without --label dev - #TODO pull request not to upload + if [[ $CIL_VERSION == *"_"* ]]; then # upload with dev label anaconda -v -t ${CCPI_CONDA_TOKEN} upload $outfile --force --label dev |