...
Code Block |
---|
// Sequences ----------------------------------------------------------------- 'CCondition' : '^con[A-Z0-9][A-Za-z0-9|_]*' , // Condition 'CEndLoopActivity' : '^le[A-Z0-9][A-Za-z0-9|_]*' , // End Loop Activity 'CExceptionHandler' : '^exc[A-Z0-9][A-Za-z0-9|_]*' , // Exception Handler 'CExecCommandActivity' : '^com[A-Z0-9][A-Za-z0-9|_]*' , // Execute Command Activity 'CJobActivity' : '^job[A-Z0-9][A-Za-z0-9|_]*' , // Job Activity 'CNotificationActivity' : '^not[A-Z0-9][A-Za-z0-9|_]*' , // Notification Activity 'COozieWfActivity' : '^ooz[A-Z0-9][A-Za-z0-9|_]*' , // Oozie Workflow 'CRoutineActivity' : '^rt[A-Z0-9][A-Za-z0-9|_]*' , // Routine Activity 'CSequencer' : '^seq[A-Z0-9][A-Za-z0-9|_]*' , // Job Sequence 'CStartLoopActivity' : '^ls[A-Z0-9][A-Za-z0-9|_]*' , // Start Loop Activity 'CTerminatorActivity' : '^ter[A-Z0-9][A-Za-z0-9|_]*' , // Terminator Activity 'CUserVarsActivity' : '^usr[A-Z0-9][A-Za-z0-9|_]*' , // User Variables Activity 'CWaitForFileActivity' : '^wff[A-Z0-9][A-Za-z0-9|_]*' // Wait For File Activity |
Blocklist
This list MettleCI also ships with a Compliance Rule which identifies jobs with names that suggest that they are NOT not intended as production candidates. This rule ships with an in-built list is applied to Parallel, Server, and Sequence asset types. You can configure the list by editing the definition of the relevant Compliance Rule. e.g.,
Code Block |
---|
// Job names indicating they are not intended for production '^(?i)CopyOf.*', //Job Name starts with 'CopyOf' '^(?i)Untitled.*', //Job Name starts with 'Untitled' '(?i).*_WIP$', //Job Name ends with '_WIP' '(?i).*DEBUG$', //Job Name ends with 'DEBUG' '(?i).*ORIGINAL$', //Job Name ends with 'ORIGINAL' '(?i).*TEMP$', //Job Name ends with 'TEMP' '(?i).*TMP$', //Job Name ends with 'TMP' // Job names using dates '.*[12]\\d{3}(0[1-9]|1[0-2])(0[1-9]|[12]\\d|3[01]).*', //YYYYMMDD '.*(0[1-9]|[12]\\d|3[01])(0[1-9]|1[0-2])[12]\\d{3}.*', //DDMMYYYY '.*(0[1-9]|1[0-2])(0[1-9]|[12]\\d|3[01])[12]\\d{3}.*', //MMDDYYYY '.*\\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\\d|3[01]).*', //YYMMDD '.*(0[1-9]|[12]\\d|3[01])(0[1-9]|1[0-2])\\d{2}.*', //DDMMYY '.*(0[1-9]|1[0-2])(0[1-9]|[12]\\d|3[01])\\d{2}.*' //MMDDYY |
...