ci: Switch to K8s build agent
Some checks reported errors
dustin/metricspi/pipeline/pr-master This commit looks good
dustin/metricspi/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
2022-08-28 13:10:57 -05:00
parent 42ce4c1383
commit 06b04abf47
3 changed files with 29 additions and 41 deletions

23
ci/Jenkinsfile vendored
View File

@@ -2,16 +2,12 @@
pipeline {
agent {
dockerfile {
dir 'ci'
args '''
-v /etc/ssh/ssh_known_hosts:/etc/ssh/ssh_known_hosts
--pids-limit 16384
'''
additionalBuildArgs '''\
--build-arg UID=$(id -u) \
--build-arg GID=$(id -g) \
'''
kubernetes {
yamlFile 'ci/podTemplate.yaml'
defaultContainer 'buildroot'
workspaceVolume persistentVolumeClaimWorkspaceVolume(
claimName: 'jenkins-ws-metricspi'
)
}
}
@@ -20,10 +16,6 @@ pipeline {
disableConcurrentBuilds()
}
triggers {
pollSCM ''
}
parameters {
booleanParam \
name: 'Clean',
@@ -32,6 +24,9 @@ pipeline {
environment {
BUILDROOT_SRC = "${env.WORKSPACE}/buildroot"
TMPDIR = "${env.WORKSPACE_TMP}"
TEMP = "${env.WORKSPACE_TMP}"
TMP = "${env.WORKSPACE_TMP}"
}
stages {