Skip to content

Commit

Permalink
jenkins: troubleshoot #1
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelafond committed Dec 2, 2021
1 parent 2b2f5c4 commit 67ee24b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
def architectures = ['amd64',
'arm64']
def architectures = ['amd64']

def repositories = ['buster',
'bullseye']
def repositories = ['bullseye']

def jobs = [:] // dynamically populated later on

void buildKernel(String repository, String architecture, String upload, String buildDir) {
sh "docker pull untangleinc/ngfw:${repository}-build-multiarch"
sh "PKGTOOLS_COMMIT=origin/${env.BRANCH_NAME} docker-compose -f ${buildDir}/docker-compose.build.yml run pkgtools"
sh "REPOSITORY=${repository} ARCHITECTURE=${architecture} VERBOSE=1 UPLOAD=${upload} docker-compose -f ${buildDir}/docker-compose.build.yml run build"
// sh "PKGTOOLS_COMMIT=origin/${env.BRANCH_NAME} docker-compose -f ${buildDir}/docker-compose.build.yml run pkgtools"
sh "REPOSITORY=${repository} ARCHITECTURE=${architecture} VERBOSE=1 UPLOAD=${upload} docker-compose -f ${buildDir}/docker-compose.build.yml run build bash -c 'ls'"
}

pipeline {
Expand Down

0 comments on commit 67ee24b

Please sign in to comment.