ci: Run in kubernetes
All checks were successful
dustin/basementhud/pipeline/head This commit looks good
All checks were successful
dustin/basementhud/pipeline/head This commit looks good
This commit is contained in:
36
ci/Jenkinsfile
vendored
36
ci/Jenkinsfile
vendored
@@ -1,11 +1,9 @@
|
||||
DOCKER_BUILD_ARGS = '''\
|
||||
--build-arg UID=$(id -u) \
|
||||
--build-arg GID=$(id -g) \
|
||||
'''
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
label 'docker && aarch64'
|
||||
kubernetes {
|
||||
yamlFile 'ci/podTemplate.yaml'
|
||||
defaultContainer 'build'
|
||||
}
|
||||
}
|
||||
|
||||
options {
|
||||
@@ -13,10 +11,6 @@ pipeline {
|
||||
disableConcurrentBuilds()
|
||||
}
|
||||
|
||||
triggers {
|
||||
pollSCM ''
|
||||
}
|
||||
|
||||
parameters {
|
||||
booleanParam \
|
||||
name: 'Clean',
|
||||
@@ -25,14 +19,6 @@ pipeline {
|
||||
|
||||
stages {
|
||||
stage('Build') {
|
||||
agent {
|
||||
dockerfile {
|
||||
reuseNode true
|
||||
dir 'ci'
|
||||
args '--privileged -u 0:0'
|
||||
additionalBuildArgs DOCKER_BUILD_ARGS
|
||||
}
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
if (params.Clean) {
|
||||
@@ -54,17 +40,11 @@ pipeline {
|
||||
changeRequest()
|
||||
}
|
||||
}
|
||||
agent {
|
||||
dockerfile {
|
||||
reuseNode true
|
||||
dir 'ci'
|
||||
args '-v /etc/ssh/ssh_known_hosts:/etc/ssh/ssh_known_hosts'
|
||||
additionalBuildArgs DOCKER_BUILD_ARGS
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sshagent(['jenkins-pxe']) {
|
||||
sh 'make publish'
|
||||
container('publish') {
|
||||
sshagent(['jenkins-pxe']) {
|
||||
sh 'make publish'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user