Skip to content

Commit

Permalink
Add dockerfile and jenkins file (linux)
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Sep 17, 2024
1 parent 8da6b2f commit 734da05
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
FROM debian:stable-slim AS clap-plugin-build
FROM debian:stable-slim AS clap-plugins-build
ARG DEBIAN_FRONTEND=noninteractive
ARG CACHE_DATE=2024-09-04

Expand Down
52 changes: 52 additions & 0 deletions jenkins/linux-plugins.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#!/usr/bin/env groovy
pipeline {
agent {
label 'linux-docker'
}

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(
defaultValue: false,
description: 'Cleanups the build directory.',
name: 'CLEAN_BUILD')

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

stages {
stage('Build') {
agent {
dockerfile {
additionalBuildArgs '--target clap-plugins-build'
filename 'Dockerfile'
reuseNode true
}
}
options {
timeout(time: 4, unit: 'HOURS')
}
steps {
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 {
archiveArtifacts artifacts: 'builds/ninja-vcpkg/plugins/Release/clap-plugins.clap', fingerprint: true
}
}
}

0 comments on commit 734da05

Please sign in to comment.