Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
developers:jenkins:job_naming [2015/12/05 03:26]
nurupo Updated regex to include Debian/Ubuntu release names in Jenkins job names as per tux3's request. The reges still needs to be pushed on Jenkins
developers:jenkins:job_naming [2017/10/08 07:57]
nurupo Updated Regex101 link
Line 6: Line 6:
 ^( ^(
     ( # define some frequently used capture groups     ( # define some frequently used capture groups
-        (?!x)x                                # always false ("match only if there is no 'x' ahead and there is 'x' ahead"+        (?!x)x                                          # always false ("match only if there is no 'x' ahead and there is 'x' ahead"
-        (?<name>[^_]+)                        # group "name", name of the program/library +        (?<name>[^_]+)                                  # group "name", name of the program/library 
-        (?<os>windows|linux|osx|android)      # group "os", operating systems +        (?<os>windows|linux|osx|android)                # group "os", operating systems 
-        (?<arch>x86-64|x86|arm64|armhf|armel) # group"arch", architectures +        (?<arch>x86-64|x86|arm64|armhf|armel|multiarch) # group "arch", architectures 
-        (?<buildtype>release|debug)           # group"buildtype", build types +        (?<buildtype>release|debug)                     # group "buildtype", build types 
-        (?<linking>shared|static|mixed)       # group "linking", library linking/build types+        (?<linking>shared|static|mixed)                 # group "linking", library linking/build types
     )     )
     |     |
Line 40: Line 40:
                         ((?<=deb_shared_) # if there is "deb_shared_" before here                         ((?<=deb_shared_) # if there is "deb_shared_" before here
                             # then match                             # then match
-                            (wheezy|jessie|stratch|trusty|utopic|vivid|wily|xenial)_+                            (jessie|stretch|buster|sid|xenial|yakkety|zesty)_
                         )                         )
                         |                         |
Line 56: Line 56:
 </code> </code>
  
-You can test your job name against the regex using [[https://regex101.com/r/zJ9zD1/25|this regex101 save]].+You can test your job name against the regex using [[https://regex101.com/r/zJ9zD1/32|this regex101 save]].
  
 ===== Examples of valid job names ===== ===== Examples of valid job names =====
Line 68: Line 68:
   * ''qtox_build_osx_x86-64_debug''   * ''qtox_build_osx_x86-64_debug''
   * ''qtox_pkg_linux_deb_shared_jessie_x86-64_stable_release''   * ''qtox_pkg_linux_deb_shared_jessie_x86-64_stable_release''
-  * ''qtox_pkg_linux_deb_shared_wily_x86-64_stable_release''+  * ''qtox_pkg_linux_deb_shared_yakkety_x86-64_stable_release''
   * ''qtox_pkg_linux_deb_static_armel_stable_debug''   * ''qtox_pkg_linux_deb_static_armel_stable_debug''
   * ''utox_build_windows_x86-64_release''   * ''utox_build_windows_x86-64_release''
Print/export