@@ -120,6 +120,8 @@ stages:
120120 build_changed=0
121121 echo "build config is unchanged";
122122 fi
123+ # set +x to prevent Azure from randomly appending a \' of the ## statement
124+ set +x
123125 echo "##vso[task.setvariable variable=conda_build_config_changed;isOutput=true]$build_changed"
124126
125127
@@ -491,6 +493,8 @@ stages:
491493 prerelease=False
492494 [[ $version == *dev* ]] && prerelease=True && echo "Development release identified"
493495 [[ $version == *rc* ]] && prerelease=True && echo "Pre-release identified"
496+ # set +x to prevent Azure from randomly appending a \' of the ## statement
497+ set +x
494498 echo "##vso[task.setvariable variable=current_version]$version"
495499 echo "##vso[task.setvariable variable=is_prerelease]$prerelease"
496500 displayName : " Get package version"
@@ -511,6 +515,8 @@ stages:
511515 anaconda login --username "${CONDA_USERNAME}" --password "${CONDA_PASSWORD}"
512516 anaconda upload --user BCG_Gamma --force $(System.ArtifactsDirectory)/conda_default/conda/noarch/$(package_name)-*.tar.bz2
513517 anaconda logout
518+ # set +x to prevent Azure from randomly appending a \' of the ## statement
519+ set +x
514520 echo "##vso[task.setvariable variable=conda_published]True"
515521 displayName: 'Publish to Anaconda'
516522
@@ -525,6 +531,8 @@ stages:
525531 pip install flit
526532 flit install -s
527533 flit publish
534+ # set +x to prevent Azure from randomly appending a \' of the ## statement
535+ set +x
528536 echo "##vso[task.setvariable variable=pypi_published]True"
529537 displayName: 'Publish to PyPi'
530538 condition: eq(variables['source_is_release_branch'], 'True')
0 commit comments