File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8888 "ncas" : "fcm" ,
8989 "psc" : "fcm" ,
9090 "uoleeds" : "fcm" ,
91+ "azngarch" : "fcm" ,
9192 "Unknown" : "true" ,
9293}
9394RESOURCE_MONITORING_JOBS = {
107108 "ncas" : [],
108109 "psc" : [],
109110 "uoleeds" : [],
111+ "azngarch" : [],
110112 "Unknown" : [],
111113}
112114CYLC_REVIEW_URL = {
124126 "ncas" : "http://puma.nerc.ac.uk/cylc-review" ,
125127 "psc" : "Unavailable" ,
126128 "uoleeds" : "Unavailable" ,
129+ "azngarch" : "Unavailable" ,
127130 "Unknown" : "Unavailable" ,
128131}
129132HIGHLIGHT_ROSE_ANA_FAILS = [
166169 "mss" : [],
167170 "ncas" : [],
168171 "psc" : [],
172+ "azngarch" : [],
169173 "Unknown" : [],
170174}
171175
@@ -754,13 +758,9 @@ def check_versions_files(self):
754758 ending = ""
755759 project = vcs_data ["url" ]
756760
757- prefix = "https://code.metoffice.gov.uk/svn/"
758- prefix_svn = "svn://fcm1/"
759- if project .startswith (prefix ):
760- project = project [len (prefix ) :]
761- if project .startswith (prefix_svn ):
762- project = project [len (prefix_svn ) :]
763- project = re .split ("[/.]" , project )[0 ].upper ()
761+ match = re .match (r"(?:https://.*?/svn/|svn://[^/]+/)([^/\./]+)" , project )
762+ if match :
763+ project = match .group (1 ).upper ()
764764 projects [project ] = {}
765765
766766 # Use the version control url as the project source
You can’t perform that action at this time.
0 commit comments