Skip to content

Commit 134b84b

Browse files
committed
jenkins: troubleshoot #2
1 parent 67ee24b commit 134b84b

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

Jenkinsfile

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,26 @@ pipeline {
2222
def arch = "${architecture}" // FIXME: cmon now
2323
def repo = "${repository}" // FIXME: cmon now
2424
def name = "${arch}/${repo}"
25+
def upload = "ftp"
26+
def buildDir = "${env.HOME}/build-ngfw_kernels-${env.BRANCH_NAME}-${arch}-${env.BUILD_NUMBER}"
2527

2628
jobs[name] = {
27-
stage(name) {
28-
agent { label 'docker && internal' }
29-
30-
environment {
31-
upload = "ftp"
32-
buildDir = "${env.HOME}/build-ngfw_kernels-${env.BRANCH_NAME}-${arch}-${env.BUILD_NUMBER}"
33-
}
34-
35-
stages {
36-
stage("Prep WS ${name}") {
37-
steps {
38-
dir(buildDir) { checkout scm } }
39-
}
29+
node('docker') {
30+
stage(name) {
31+
stages {
32+
stage("Prep WS ${name}") {
33+
steps {
34+
dir(buildDir) { checkout scm } }
35+
}
4036

41-
stage("Build ${name}") {
42-
steps {
43-
buildKernel(repo, arch, upload, buildDir)
37+
stage("Build ${name}") {
38+
steps {
39+
buildKernel(repo, arch, upload, buildDir)
40+
}
4441
}
4542
}
4643
}
47-
}
44+
}
4845
}
4946
}
5047
}

0 commit comments

Comments
 (0)