Skip to content

Commit

Permalink
Format file
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Sep 24, 2024
1 parent 557ed4b commit f05444b
Showing 1 changed file with 49 additions and 49 deletions.
98 changes: 49 additions & 49 deletions jenkins/build.groovy
Original file line number Diff line number Diff line change
@@ -1,82 +1,82 @@
#!/usr/bin/env groovy
pipeline {
agent none
agent {
label 'docker'
}
agent none
agent {
label 'docker'
}

parameters {
string(
parameters {
string(
defaultValue: 'main', name: 'BRANCH_OR_COMMIT_HASH',
description: 'Git branch name or commit hash to build. Defaults to tip of main branch.')

booleanParam(
booleanParam(
defaultValue: false,
description: 'Cleanups the build directory.',
name: 'CLEAN_BUILD')

booleanParam(
booleanParam(
defaultValue: false,
description: 'Rebuilds VCPKG dependencies.',
name: 'REBUILD_VCPKG')

booleanParam(
booleanParam(
defaultValue: true,
description: 'Check to enable Linux build',
name: 'shouldBuildLinux')

booleanParam(
booleanParam(
defaultValue: true,
description: 'Check to enable Windows build',
name: 'shouldBuildWindows')

booleanParam(
booleanParam(
defaultValue: true,
description: 'Check to enable macOS build',
name: 'shouldBuildMac')
}
}

stages {
stage('Build') {
parallel {
stage('Linux') {
when {
expression {
return params.shouldBuildLinux
}
}
agent {
dockerfile {
additionalBuildArgs '--target clap-plugins-build'
filename 'Dockerfile'
reuseNode true
}
}
options {
timeout(time: 4, unit: 'HOURS')
}
steps {
script {
if (CLEAN_BUILD) {
sh 'rm -rf builds'
}
if (REBUILD_VCPKG) {
sh 'rm -rf vcpkg/{installed,buildtree} ~/.cache/vcpkg'
}
}
sh 'scripts/build-gui.sh'
}
post {
always {
zip zipFile: 'linux-clap-plugins.zip', archive: true, overwrite: true,
stages {
stage('Build') {
parallel {
stage('Linux') {
when {
expression {
return params.shouldBuildLinux
}
}
agent {
dockerfile {
additionalBuildArgs '--target clap-plugins-build'
filename 'Dockerfile'
reuseNode true
}
}
options {
timeout(time: 4, unit: 'HOURS')
}
steps {
script {
if (CLEAN_BUILD) {
sh 'rm -rf builds'
}
if (REBUILD_VCPKG) {
sh 'rm -rf vcpkg/{installed,buildtree} ~/.cache/vcpkg'
}
}
sh 'scripts/build-gui.sh'
}
post {
always {
zip zipFile: 'linux-clap-plugins.zip', archive: true, overwrite: true,
glob: 'builds/ninja-vcpkg/plugins/Release/clap-plugins.clap'

zip zipFile: 'linux-vcpkg-logs.zip', archive: true, overwrite: true,
zip zipFile: 'linux-vcpkg-logs.zip', archive: true, overwrite: true,
glob: 'vcpkg/buildtrees/**/*.log, vcpkg/installed/vcpkg/issue_body.md'
}
}
}
}
}
}
}
}
}
}

0 comments on commit f05444b

Please sign in to comment.