66
77/*
88 * Copyright 2022 Joyent, Inc.
9- * Copyright 2023 MNX Cloud, Inc.
9+ * Copyright 2025 MNX Cloud, Inc.
1010 */
1111
1212@Library (' jenkins-joylib@v1.0.8' ) _
@@ -45,8 +45,8 @@ pipeline {
4545 ' <dd>platform root password [default: randomly chosen]</dd>\n ' +
4646 ' <dt>-S</dt>\n ' +
4747 ' <dd>do *not* run smatch [default is to run smatch]</dd>\n ' +
48- ' <dt>-s gcc7 </dt>\n ' +
49- ' <dd>shadow compilers, comma delimited (gcc7 ,gcc#) [default: none]</dd>\n ' +
48+ ' <dt>-s gcc14 </dt>\n ' +
49+ ' <dd>shadow compilers, comma delimited (gcc14 ,gcc#) [default: none]</dd>\n ' +
5050 ' </dl>'
5151 )
5252 text(
@@ -112,8 +112,9 @@ pipeline {
112112 stage(' check' ) {
113113 agent {
114114 node {
115- label ' platform:true && image_ver:21.4.0 && pkgsrc_arch:x86_64 && ' +
116- ' dram:16gb && !virt:kvm && fs:pcfs && fs:ufs && jenkins_agent:3'
115+ label ' platform:true && image_ver:24.4.1 && ' +
116+ ' pkgsrc_arch:x86_64 && (dram:16gb || dram:32gb ) && ' +
117+ ' !virt:kvm && fs:pcfs && fs:ufs && jenkins_agent:3'
117118 customWorkspace " workspace/smartos-${ BRANCH_NAME} -check"
118119 }
119120 }
@@ -157,8 +158,9 @@ set -o pipefail
157158 // completes).
158159 // Use ${BRANCH_NAME} instead.
159160 node {
160- label ' platform:true && image_ver:21.4.0 && pkgsrc_arch:x86_64 && ' +
161- ' dram:16gb && !virt:kvm && fs:pcfs && fs:ufs && jenkins_agent:3'
161+ label ' platform:true && image_ver:24.4.1 && ' +
162+ ' pkgsrc_arch:x86_64 && (dram:16gb || dram:32gb ) && ' +
163+ ' !virt:kvm && fs:pcfs && fs:ufs && jenkins_agent:3'
162164 customWorkspace " workspace/smartos-${ BRANCH_NAME} -default"
163165 }
164166 }
@@ -197,15 +199,16 @@ export ENGBLD_BITS_UPLOAD_IMGAPI=true
197199 cleanWhenNotBuilt : true ,
198200 deleteDirs : true
199201 joySlackNotifications(
200- channel : ' smartos' , comment : ' default' )
202+ channel : ' cloud- smartos' , comment : ' default' )
201203 }
202204 }
203205 }
204206 stage(' debug' ) {
205207 agent {
206208 node {
207- label ' platform:true && image_ver:21.4.0 && pkgsrc_arch:x86_64 && ' +
208- ' dram:16gb && !virt:kvm && fs:pcfs && fs:ufs && jenkins_agent:3'
209+ label ' platform:true && image_ver:24.4.1 && ' +
210+ ' pkgsrc_arch:x86_64 && (dram:16gb || dram:32gb ) && ' +
211+ ' !virt:kvm && fs:pcfs && fs:ufs && jenkins_agent:3'
209212 customWorkspace " workspace/smartos-${ BRANCH_NAME} -debug"
210213 }
211214 }
@@ -246,16 +249,17 @@ export PLAT_CONFIGURE_ARGS="-d $PLAT_CONFIGURE_ARGS"
246249 cleanWhenNotBuilt : true ,
247250 deleteDirs : true
248251 joySlackNotifications(
249- channel : ' smartos' , comment : ' debug' )
252+ channel : ' cloud- smartos' , comment : ' debug' )
250253 }
251254 }
252255 }
253- stage(' gcc7 ' ) {
256+ stage(' gcc14 ' ) {
254257 agent {
255258 node {
256- label ' platform:true && image_ver:21.4.0 && pkgsrc_arch:x86_64 && ' +
257- ' dram:16gb && !virt:kvm && fs:pcfs && fs:ufs && jenkins_agent:3'
258- customWorkspace " workspace/smartos-${ BRANCH_NAME} -gcc7"
259+ label ' platform:true && image_ver:24.4.1 && ' +
260+ ' pkgsrc_arch:x86_64 && (dram:16gb || dram:32gb ) && ' +
261+ ' !virt:kvm && fs:pcfs && fs:ufs && jenkins_agent:3'
262+ customWorkspace " workspace/smartos-${ BRANCH_NAME} -gcc14"
259263 }
260264 }
261265 when {
@@ -272,18 +276,18 @@ export PLAT_CONFIGURE_ARGS="-d $PLAT_CONFIGURE_ARGS"
272276 steps {
273277 sh(' git clean -fdx' )
274278 sh('''
275- export PLAT_CONFIGURE_ARGS="-p gcc7 -r $PLAT_CONFIGURE_ARGS"
279+ export PLAT_CONFIGURE_ARGS="-p gcc14 -r $PLAT_CONFIGURE_ARGS"
276280# enough to make sure we don't pollute the main Manta dir
277- # Also for now we implicitly promise that the gcc7 deliverables are DEBUG,
278- # but we could choose to make -gcc7 *and* -debug-gcc7 stages later and alter
281+ # Also for now we implicitly promise that the gcc14 deliverables are DEBUG,
282+ # but we could choose to make -gcc14 *and* -debug-gcc14 stages later and alter
279283# PLATFORM_DEBUG_SUFFIX accordingly.
280- export PLATFORM_DEBUG_SUFFIX=-gcc7
281- ./tools/build_jenkins -c -d -S gcc7
284+ export PLATFORM_DEBUG_SUFFIX=-gcc14
285+ ./tools/build_jenkins -c -d -S gcc14
282286 ''' )
283287 }
284288 post {
285289 always {
286- archiveArtifacts artifacts : ' output/gcc7 /**' ,
290+ archiveArtifacts artifacts : ' output/gcc14 /**' ,
287291 onlyIfSuccessful : false ,
288292 allowEmptyArchive : true
289293 cleanWs cleanWhenSuccess : true ,
@@ -292,15 +296,16 @@ export PLATFORM_DEBUG_SUFFIX=-gcc7
292296 cleanWhenNotBuilt : true ,
293297 deleteDirs : true
294298 joySlackNotifications(
295- channel : ' smartos' , comment : ' gcc7 ' )
299+ channel : ' cloud- smartos' , comment : ' gcc14 ' )
296300 }
297301 }
298302 }
299303 stage(' strap-cache' ) {
300304 agent {
301305 node {
302- label ' platform:true && image_ver:21.4.0 && pkgsrc_arch:x86_64 && ' +
303- ' dram:16gb && !virt:kvm && fs:pcfs && fs:ufs && jenkins_agent:3'
306+ label ' platform:true && image_ver:24.4.1 && ' +
307+ ' pkgsrc_arch:x86_64 && (dram:16gb || dram:32gb ) && ' +
308+ ' !virt:kvm && fs:pcfs && fs:ufs && jenkins_agent:3'
304309 customWorkspace " workspace/smartos-${ BRANCH_NAME} -strap-cache"
305310 }
306311 }
@@ -335,7 +340,7 @@ export MANTA_TOOLS_PATH=/root/bin/
335340 cleanWhenNotBuilt : true ,
336341 deleteDirs : true
337342 joySlackNotifications(
338- channel : ' smartos' , comment : ' strap-cache' )
343+ channel : ' cloud- smartos' , comment : ' strap-cache' )
339344 }
340345 }
341346 }
@@ -344,10 +349,9 @@ export MANTA_TOOLS_PATH=/root/bin/
344349 }
345350 post {
346351 always {
352+ joySlackNotifications(comment : ' pipeline complete' )
347353 joySlackNotifications(
348- channel : ' jenkins' , comment : ' pipeline complete' )
349- joySlackNotifications(
350- channel : ' smartos' , comment : ' pipeline complete' )
354+ channel : ' cloud-smartos' , comment : ' pipeline complete' )
351355 }
352356 }
353357}
0 commit comments