File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 19
19
#
20
20
21
21
#
22
- # Copyright (c) 2017 , Oracle and/or its affiliates. All rights reserved.
22
+ # Copyright (c) 2018 , Oracle and/or its affiliates. All rights reserved.
23
23
#
24
24
25
25
"""
140
140
continue
141
141
142
142
if pattern .match (args .project ):
143
+ logger .debug ("Project '{}' matched pattern '{}'" .
144
+ format (args .project , proj ))
143
145
project_config = projects .get (proj )
144
146
break
145
147
except KeyError :
155
157
ignored_repos = []
156
158
use_proxy = False
157
159
if project_config :
160
+ logger .debug ("Project '{}' has specific (non-default) config" .
161
+ format (args .project ))
162
+
158
163
if project_config .get ('ignored_repos' ):
159
164
ignored_repos = project_config .get ('ignored_repos' )
165
+ logger .debug ("has ignored repositories: {}" .
166
+ format (ignored_repos ))
160
167
161
168
hooks = project_config .get ('hooks' )
162
169
if hooks :
187
194
sys .exit (1 )
188
195
189
196
if project_config .get ('proxy' ):
197
+ if not config .get ('proxy' ):
198
+ logger .error ("global project proxy needed" )
199
+ sys .exit (1 )
200
+
201
+ logger .debug ("will use proxy" )
190
202
use_proxy = True
191
203
192
204
# Log messages to dedicated log file if running in batch mode.
You can’t perform that action at this time.
0 commit comments