Skip to content

Commit

Permalink
jenkins: troubleshoot #2
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelafond committed Dec 2, 2021
1 parent 67ee24b commit 134b84b
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,26 @@ pipeline {
def arch = "${architecture}" // FIXME: cmon now
def repo = "${repository}" // FIXME: cmon now
def name = "${arch}/${repo}"
def upload = "ftp"
def buildDir = "${env.HOME}/build-ngfw_kernels-${env.BRANCH_NAME}-${arch}-${env.BUILD_NUMBER}"

jobs[name] = {
stage(name) {
agent { label 'docker && internal' }

environment {
upload = "ftp"
buildDir = "${env.HOME}/build-ngfw_kernels-${env.BRANCH_NAME}-${arch}-${env.BUILD_NUMBER}"
}

stages {
stage("Prep WS ${name}") {
steps {
dir(buildDir) { checkout scm } }
}
node('docker') {
stage(name) {
stages {
stage("Prep WS ${name}") {
steps {
dir(buildDir) { checkout scm } }
}

stage("Build ${name}") {
steps {
buildKernel(repo, arch, upload, buildDir)
stage("Build ${name}") {
steps {
buildKernel(repo, arch, upload, buildDir)
}
}
}
}
}
}
}
}
}
Expand Down

0 comments on commit 134b84b

Please sign in to comment.