From 84811ac4418fb7f72dfcb7cb8329cf05ed0fb538 Mon Sep 17 00:00:00 2001 From: Tomas Kulhanek Date: Tue, 22 Jan 2019 12:52:34 +0000 Subject: Update jenkins-build.sh --- build/jenkins-build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'build') 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 -- cgit v1.2.3