summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Kulhanek <tomas.kulhanek@stfc.ac.uk>2019-01-22 12:52:34 +0000
committerGitHub <noreply@github.com>2019-01-22 12:52:34 +0000
commit84811ac4418fb7f72dfcb7cb8329cf05ed0fb538 (patch)
treef83cf2c0e29f3eb098ed71b9788bdabce9fabb09
parent19fce0003d558b4eb9dadfb6aef7c79deef13489 (diff)
downloadregularization-84811ac4418fb7f72dfcb7cb8329cf05ed0fb538.tar.gz
regularization-84811ac4418fb7f72dfcb7cb8329cf05ed0fb538.tar.bz2
regularization-84811ac4418fb7f72dfcb7cb8329cf05ed0fb538.tar.xz
regularization-84811ac4418fb7f72dfcb7cb8329cf05ed0fb538.zip
Update jenkins-build.sh
-rwxr-xr-xbuild/jenkins-build.sh6
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