Changeset 0ef06b6 for Jenkinsfile
- Timestamp:
- Feb 16, 2017, 12:09:30 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- ae28ee2
- Parents:
- 9beae23
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
r9beae23 r0ef06b6 7 7 8 8 boolean bIsSandbox = env.BRANCH_NAME == "jenkins-sandbox" 9 boolean bIsFullBuild10 9 def err = null 11 10 def log_needed = false 11 12 bIsFullBuild = false 13 architectureFlag = '' 14 status_prefix = '' 15 12 16 currentBuild.result = "SUCCESS" 13 status_prefix = ''14 17 15 18 try { … … 20 23 wrap([$class: 'TimestamperBuildWrapper']) { 21 24 22 collect_git_info() 23 24 properties ([ \ 25 [$class: 'ParametersDefinitionProperty', \ 26 parameterDefinitions: [ \ 27 [$class: 'BooleanParameterDefinition', \ 28 defaultValue: false, \ 29 description: 'If true, the build will be promoted to the do-lang git repository (on successful builds only)', \ 30 name: 'isFullBuild' \ 31 ], \ 32 [$class: 'ChoiceParameterDefinition', \ 33 choices: '64-bit\n32-bit', \ 34 defaultValue: '64-bit', \ 35 description: 'The architecture to use for compilation', \ 36 name: 'buildArchitecture' \ 37 ]] \ 38 ]]) 39 40 bIsFullBuild = isFullBuild == 'true' 41 architectureFlag = '' 42 if (buildArchitecture == '64-bit') { 43 architectureFlag = '--host=x86_64 CXXFLAGS="-m64" CFAFLAGS="-m64"' 44 } else if (buildArchitecture == '32-bit'){ 45 architectureFlag = '--host=i386 CXXFLAGS="-m32" CFAFLAGS="-m32"' 46 } else { 47 architectureFlag = 'ERROR' 48 } 49 50 echo "FULL BUILD = ${isFullBuild}\nArchitecture = ${buildArchitecture} (flag ${architectureFlag})" 25 prepare_build() 51 26 52 27 //Compile using gcc-4.9 … … 146 121 gitRefOldValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][1] 147 122 gitRefNewValue = (git_reflog =~ /moving from (.+) to (.+)/)[0][2] 123 } 124 125 def prepare_build() { 126 properties ([ \ 127 [$class: 'ParametersDefinitionProperty', \ 128 parameterDefinitions: [ \ 129 [$class: 'BooleanParameterDefinition', \ 130 defaultValue: false, \ 131 description: 'If true, the build will be promoted to the do-lang git repository (on successful builds only)', \ 132 name: 'isFullBuild' \ 133 ], \ 134 [$class: 'ChoiceParameterDefinition', \ 135 choices: '64-bit\n32-bit', \ 136 defaultValue: '64-bit', \ 137 description: 'The architecture to use for compilation', \ 138 name: 'buildArchitecture' \ 139 ]] \ 140 ]]) 141 142 bIsFullBuild = isFullBuild == 'true' 143 architectureFlag = '' 144 if (buildArchitecture == '64-bit') { 145 architectureFlag = '--host=x86_64 CXXFLAGS="-m64" CFAFLAGS="-m64"' 146 } else if (buildArchitecture == '32-bit'){ 147 architectureFlag = '--host=i386 CXXFLAGS="-m32" CFAFLAGS="-m32"' 148 } else { 149 architectureFlag = 'ERROR' 150 } 151 152 echo "FULL BUILD = ${isFullBuild}\nArchitecture = ${buildArchitecture} (flag ${architectureFlag})" 153 154 collect_git_info() 155 148 156 } 149 157
Note: See TracChangeset
for help on using the changeset viewer.