Changeset e018546 for Jenkins/Distribute
- Timestamp:
- Jun 8, 2021, 9:13:14 PM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- bd50205
- Parents:
- 47138ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkins/Distribute
r47138ee re018546 2 2 3 3 import groovy.transform.Field 4 5 // For skipping stages6 import org.jenkinsci.plugins.pipeline.modeldefinition.Utils7 4 8 5 //=========================================================================================================== … … 10 7 //=========================================================================================================== 11 8 9 // Globals 10 BuildDir = null 11 SrcDir = null 12 Settings = null 13 Version = '' 14 15 // Local variables 16 def err = null 17 def log_needed = false 18 19 currentBuild.result = "SUCCESS" 20 21 final commit, build 12 22 node { 13 // Globals14 BuildDir = pwd tmp: true15 SrcDir = pwd tmp: false16 Settings = null17 Version = ''18 19 // Local variables20 def err = null21 def log_needed = false22 23 currentBuild.result = "SUCCESS"24 23 25 24 //Wrap build to add timestamp to command line 26 25 wrap([$class: 'TimestamperBuildWrapper']) { 26 (commit, build) = prepare_build() 27 } 28 } 27 29 28 final commit, build 29 (commit, build) = prepare_build() 30 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 30 node('x64') { 31 //Wrap build to add timestamp to command line 32 wrap([$class: 'TimestamperBuildWrapper']) { 51 33 BuildDir = pwd tmp: true 52 34 SrcDir = pwd tmp: false 35 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() 53 49 } 54 55 50 } 56 51
Note: See TracChangeset
for help on using the changeset viewer.