88
88
displayName : " Publish Test Results"
89
89
condition : eq(variables['SKIP_BUILD'], 'false')
90
90
91
- - bash : |
92
- echo "##vso[task.prependpath]$CONDA/bin"
93
- sudo chown -R $USER $CONDA
94
- displayName: Add conda to PATH
95
- condition: and(succeeded(), eq(variables['SKIP_BUILD'], 'false'), ne(variables['Build.Reason'], 'PullRequest'))
96
-
97
- - bash : conda install -q -y anaconda-client
98
- displayName : Install anaconda-client
99
- condition : and(succeeded(), eq(variables['SKIP_BUILD'], 'false'), ne(variables['Build.Reason'], 'PullRequest'))
100
-
101
91
- bash : |
102
92
set -e
103
93
if [ "$BUILD_REASON" == "Schedule" ]; then
@@ -113,12 +103,22 @@ jobs:
113
103
echo "##vso[task.setvariable variable=TOKEN]$TOKEN"
114
104
echo "##vso[task.setvariable variable=ANACONDA_ORG]$ANACONDA_ORG"
115
105
displayName: Retrieve secret upload token
116
- condition: and(succeeded(), eq(variables['SKIP_BUILD'], 'false'), ne(variables['Build.Reason'], 'PullRequest'))
106
+ condition: and(succeeded(), eq(variables['SKIP_BUILD'], 'false'), ne(variables['Build.Reason'], 'PullRequest'), variables['SCIKIT_LEARN_NIGHTLY_UPLOAD_TOKEN'], variables['SCIKIT_LEARN_STAGING_UPLOAD_TOKEN'] )
117
107
env:
118
108
# Secret variables need to mapped to env variables explicitly:
119
109
SCIKIT_LEARN_NIGHTLY_UPLOAD_TOKEN: $(SCIKIT_LEARN_NIGHTLY_UPLOAD_TOKEN)
120
110
SCIKIT_LEARN_STAGING_UPLOAD_TOKEN: $(SCIKIT_LEARN_STAGING_UPLOAD_TOKEN)
121
111
112
+ - bash : |
113
+ echo "##vso[task.prependpath]$CONDA/bin"
114
+ sudo chown -R $USER $CONDA
115
+ displayName: Add conda to PATH
116
+ condition: and(succeeded(), eq(variables['SKIP_BUILD'], 'false'), ne(variables['Build.Reason'], 'PullRequest'), variables['TOKEN'])
117
+
118
+ - bash : conda install -q -y anaconda-client
119
+ displayName : Install anaconda-client
120
+ condition : and(succeeded(), eq(variables['SKIP_BUILD'], 'false'), ne(variables['Build.Reason'], 'PullRequest'), variables['TOKEN'])
121
+
122
122
- bash : |
123
123
set -e
124
124
# The --force option forces a replacement if the remote file already
0 commit comments