Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkins/Distribute

    re018546 r8089fde  
    22
    33import groovy.transform.Field
     4
     5// For skipping stages
     6import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
    47
    58//===========================================================================================================
     
    710//===========================================================================================================
    811
    9 // Globals
    10 BuildDir  = null
    11 SrcDir    = null
    12 Settings  = null
    13 Version   = ''
     12node('master') {
     13        // Globals
     14        BuildDir  = pwd tmp: true
     15        SrcDir    = pwd tmp: false
     16        Settings  = null
     17        Version   = ''
    1418
    15 // Local variables
    16 def err = null
    17 def log_needed = false
     19        // Local variables
     20        def err = null
     21        def log_needed = false
    1822
    19 currentBuild.result = "SUCCESS"
    20 
    21 final commit, build
    22 node {
     23        currentBuild.result = "SUCCESS"
    2324
    2425        //Wrap build to add timestamp to command line
    2526        wrap([$class: 'TimestamperBuildWrapper']) {
     27
     28                final commit, build
    2629                (commit, build) = prepare_build()
    27         }
    28 }
    2930
    30 node('x64') {
    31         //Wrap build to add timestamp to command line
    32         wrap([$class: 'TimestamperBuildWrapper']) {
     31                node('x64') {
     32                        BuildDir  = pwd tmp: true
     33                        SrcDir    = pwd tmp: false
     34
     35                        Tools.Clean()
     36
     37                        Tools.Checkout( commit )
     38
     39                        Version = GetVersion( build )
     40
     41                        Configure()
     42
     43                        Package()
     44
     45                        Test()
     46
     47                        Archive()
     48                }
     49
     50                // Update the build directories when exiting the node
    3351                BuildDir  = pwd tmp: true
    3452                SrcDir    = pwd tmp: false
     53        }
    3554
    36                 Tools.Clean()
    37 
    38                 Tools.Checkout( commit )
    39 
    40                 Version = GetVersion( build )
    41 
    42                 Configure()
    43 
    44                 Package()
    45 
    46                 Test()
    47 
    48                 Archive()
    49         }
    5055}
    5156
Note: See TracChangeset for help on using the changeset viewer.