Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/*
* Copyright 2022 Joyent, Inc.
* Copyright 2025 MNX Cloud, Inc.
* Copyright 2026 Edgecast Cloud LLC.
*/

@Library('jenkins-joylib@v1.0.8') _
Expand Down Expand Up @@ -78,13 +79,11 @@ pipeline {
stage('check') {
agent {
node {
label '!virt:kvm && !virt:bhyve && fs:pcfs && fs:ufs && jenkins_agent:3 && pkgsrc_arch:multiarch'
label 'image_ver:24.4.1 && !virt:kvm && !virt:bhyve && ' +
'fs:pcfs && fs:ufs && jenkins_agent:3 && pkgsrc_arch:x86_64'
customWorkspace "workspace/headnode-${BRANCH_NAME}-check"
}
}
tools {
nodejs 'sdcnode-v6-zone'
}
steps{
sh('''
set -o errexit
Expand Down Expand Up @@ -116,7 +115,8 @@ make check
stage('default') {
agent {
node {
label '!virt:kvm && !virt:bhyve && fs:pcfs && fs:ufs && jenkins_agent:3 && pkgsrc_arch:multiarch'
label 'platform:true && !virt:kvm && !virt:bhyve && ' +
'fs:pcfs && fs:ufs && jenkins_agent:3 && pkgsrc_arch:x86_64'
customWorkspace "workspace/headnode-${BRANCH_NAME}-default"
}
}
Expand All @@ -132,9 +132,6 @@ make check
triggeredBy cause: 'UserIdCause'
}
}
tools {
nodejs 'sdcnode-v6-zone'
}
steps {
sh('git clean -fdx')
sh('''
Expand Down Expand Up @@ -176,7 +173,8 @@ make print-STAMP all publish bits-upload-latest
stage('debug') {
agent {
node {
label '!virt:kvm && !virt:bhyve && fs:pcfs && fs:ufs && jenkins_agent:3 && pkgsrc_arch:multiarch'
label 'platform:true && !virt:kvm && !virt:bhyve && ' +
'fs:pcfs && fs:ufs && jenkins_agent:3 && pkgsrc_arch:x86_64'
customWorkspace "workspace/headnode-${BRANCH_NAME}-debug"
}
}
Expand Down
4 changes: 4 additions & 0 deletions bin/build-image
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#
# Copyright 2021 Joyent, Inc.
# Copyright 2026 Edgecast Cloud LLC.
#

ROOT=$(cd $(dirname $0)/../ >/dev/null; pwd)
Expand Down Expand Up @@ -54,6 +55,9 @@ tar|usb|coal|dataset|iso|ipxe)
esac
export TYPE

# Make sure we have npm installed.
pkgin install nodejs

if [[ ${TYPE} != "dataset" || -z $(ls -1dt $ROOT/usb-* | head -1) ]]; then
$ROOT/bin/build-tar-image
[[ "$TYPE" == "tar" ]] && exit 0
Expand Down