diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-01-03 21:57:52 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-01-03 21:57:52 +0100 |
commit | 721770c206847f2f2ae7aea17b09ae2fadd0e60c (patch) | |
tree | 9349098829e2f784c5b3ba5d6f9c9d1e8421f984 /Jenkinsfile | |
parent | 9e8636d737b665c3f492d5bc8966625f9b3bdfbc (diff) | |
download | vyos-build-721770c206847f2f2ae7aea17b09ae2fadd0e60c.tar.gz vyos-build-721770c206847f2f2ae7aea17b09ae2fadd0e60c.zip |
Revert "Jenkins: T1927: Update Jenkinsfile to build on arm"
This reverts commit a7bb0a8021366b5883b947157e9989cf356d9d36.
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 72 |
1 files changed, 12 insertions, 60 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index b726df6e..40729a58 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -73,66 +73,18 @@ setDescription() // Due to long build times on DockerHub we rather build the container by ourself // and publish it later on. node('Docker') { - stage('Fetch') { - git branch: getGitBranchName(), - url: getGitRepoURL() - } - stage('Build Docker container') { - parallel ( - 'x86-64': { - script { - // create container name on demand - env.DOCKER_IMAGE = "vyos/vyos-build:" + getGitBranchName() - sh "docker build -t ${env.DOCKER_IMAGE} docker" - if ( ! isCustomBuild()) { - withDockerRegistry([credentialsId: "DockerHub"]) { - sh "docker push ${env.DOCKER_IMAGE}" - } - } - } - }, - 'armhf': { - script { - // create container name on demand - env.DOCKER_IMAGE = "vyos/vyos-build:" + getGitBranchName() + "-armhf" - - dir('docker') { - sh """ - cp Dockerfile armhf/Dockerfile - cp entrypoint.sh armhf/entrypoint.sh - sed -i 's#^FROM.*#FROM multiarch/debian-debootstrap:armhf-buster-slim#' armhf/Dockerfile - docker build -t ${env.DOCKER_IMAGE} armhf - """ - if ( ! isCustomBuild()) { - withDockerRegistry([credentialsId: "DockerHub"]) { - sh "docker push ${env.DOCKER_IMAGE}" - } - } - } - } - }, - 'arm64': { - script { - // create container name on demand - env.DOCKER_IMAGE = "vyos/vyos-build:" + getGitBranchName() + "-arm64" - - dir('docker') { - sh """ - cp Dockerfile arm64/Dockerfile - cp entrypoint.sh arm64/entrypoint.sh - sed -i 's#^FROM.*#FROM multiarch/debian-debootstrap:arm64-buster-slim#' arm64/Dockerfile - docker build -t ${env.DOCKER_IMAGE} arm64 - """ - - if ( ! isCustomBuild()) { - withDockerRegistry([credentialsId: "DockerHub"]) { - sh "docker push ${env.DOCKER_IMAGE}" - } - } - } - } + stage('Build Container') { + script { + git branch: getGitBranchName(), + url: getGitRepoURL() + + // create container name on demand + env.DOCKER_IMAGE = "vyos/vyos-build:" + getGitBranchName() + sh "docker build -t ${env.DOCKER_IMAGE} docker" + withDockerRegistry([credentialsId: "DockerHub"]) { + sh "docker push ${env.DOCKER_IMAGE}" } - ) + } } } @@ -140,7 +92,7 @@ pipeline { options { skipDefaultCheckout() disableConcurrentBuilds() - timeout(time: 120, unit: 'MINUTES') + timeout(time: 90, unit: 'MINUTES') parallelsAlwaysFailFast() timestamps() } |