File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 144
144
def user_credentials_for ( scope )
145
145
FileUtils . mkdir_p ( File . dirname ( token_store_path ) )
146
146
147
+ puts "## Catch error try to delete token_store_path"
148
+
149
+ puts token_store_path
150
+
147
151
if ENV [ 'GOOGLE_CLIENT_ID' ]
148
152
client_id = Google ::Auth ::ClientId . new ( ENV [ 'GOOGLE_CLIENT_ID' ] , ENV [ 'GOOGLE_CLIENT_SECRET' ] )
149
153
else
@@ -174,15 +178,16 @@ task :googlesitemap do |t, args|
174
178
service = WebmastersV3 ::WebmastersService . new
175
179
service . authorization = user_credentials_for ( WebmastersV3 ::AUTH_WEBMASTERS )
176
180
service . key = ENV [ 'GOOGLE_API_KEY' ]
177
- Dir . glob ( "#{ deploy_dir } /**/sitemap.xml" ) { |file |
181
+ Dir . glob ( "#{ deploy_dir } /**/sitemap.xml" ) do |file |
178
182
url = deploy_domain + file . sub ( "#{ deploy_dir } \/ " , "" )
179
183
puts url
180
184
begin
181
185
service . submit_sitemap ( deploy_domain , url )
182
- rescue
186
+ rescue StandardError => e
187
+ puts e . backtrace . join ( "\n " )
183
188
retry
184
189
end
185
- }
190
+ end
186
191
end
187
192
188
193
@@ -307,9 +312,17 @@ task :multi_gen_deploy do
307
312
queueNames =
308
313
[
309
314
315
+
316
+ # 'gcc~11',
317
+ # 'gcc~11_cpp',
318
+ # 'tensorflow_cpp~2.4',
319
+ # 'tensorflow~2.4',
320
+ # 'haproxy~2.4'
321
+ # 'ansible',
322
+ # 'ansible~2.11'
310
323
# 'django~3.2',
311
324
# 'css',
312
- 'prettier' ,
325
+ # 'prettier'
313
326
# 'latex',
314
327
# 'angularjs~1.8',
315
328
# 'typescript',
You can’t perform that action at this time.
0 commit comments