File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -140,16 +140,19 @@ def command_exists(self, command):
140
140
def custom_function (self ):
141
141
commit_hash = get_commit_hash ()
142
142
import cmind
143
- r = cmind .access ({'action' : 'rm' ,
143
+ clean_mlops_repo = os .environ .get ('CM_MLOPS_CLEAN_REPO' , 'false' )
144
+ if str (clean_mlops_repo ).lower () not in ["no" , "0" , "false" , "off" ]:
145
+ r = cmind .access ({'action' : 'rm' ,
144
146
'automation' : 'repo' ,
145
147
'artifact' : 'mlcommons@cm4mlops' ,
146
148
'force' : True ,
147
149
'all' : True })
150
+
148
151
branch = os .environ .get ('CM_MLOPS_REPO_BRANCH' , 'dev' )
149
152
pull_default_mlops_repo = os .environ .get (
150
153
'CM_PULL_DEFAULT_MLOPS_REPO' , 'true' )
151
154
152
- if str (pull_default_mlops_repo ).lower () not in ["no" , "0" , "false" ]:
155
+ if str (pull_default_mlops_repo ).lower () not in ["no" , "0" , "false" , "off" ]:
153
156
r = cmind .access ({'action' : 'pull' ,
154
157
'automation' : 'repo' ,
155
158
'artifact' : 'mlcommons@mlperf-automations' ,
You can’t perform that action at this time.
0 commit comments