Changes in Jenkins/Distribute [e018546:8089fde]
- File:
-
- 1 edited
-
Jenkins/Distribute (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/Distribute
re018546 r8089fde 2 2 3 3 import groovy.transform.Field 4 5 // For skipping stages 6 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils 4 7 5 8 //=========================================================================================================== … … 7 10 //=========================================================================================================== 8 11 9 // Globals 10 BuildDir = null 11 SrcDir = null 12 Settings = null 13 Version = '' 12 node('master') { 13 // Globals 14 BuildDir = pwd tmp: true 15 SrcDir = pwd tmp: false 16 Settings = null 17 Version = '' 14 18 15 // Local variables16 def err = null17 def log_needed = false19 // Local variables 20 def err = null 21 def log_needed = false 18 22 19 currentBuild.result = "SUCCESS" 20 21 final commit, build 22 node { 23 currentBuild.result = "SUCCESS" 23 24 24 25 //Wrap build to add timestamp to command line 25 26 wrap([$class: 'TimestamperBuildWrapper']) { 27 28 final commit, build 26 29 (commit, build) = prepare_build() 27 }28 }29 30 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 33 51 BuildDir = pwd tmp: true 34 52 SrcDir = pwd tmp: false 53 } 35 54 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 }50 55 } 51 56
Note:
See TracChangeset
for help on using the changeset viewer.