summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-03 14:54:18 +0200
committerChristian Poessinger <christian@poessinger.com>2021-04-03 14:55:08 +0200
commite26c91742e7162b07b3c429da30ef75a244bd131 (patch)
tree33fe424f8d3a36ffa19c471f2ceadd808fd69bdd /Jenkinsfile
parentcb2659c88c9166bec8088368211db42fa82b9129 (diff)
downloadvyos-build-e26c91742e7162b07b3c429da30ef75a244bd131.tar.gz
vyos-build-e26c91742e7162b07b3c429da30ef75a244bd131.zip
Jenkins: indention fix
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile33
1 files changed, 16 insertions, 17 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 0ec68d4c..826036ac 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -42,7 +42,7 @@ node('Docker') {
sh """
docker build -t ${env.DOCKER_IMAGE} .
"""
- if ( ! isCustomBuild()) {
+ if (! isCustomBuild()) {
withDockerRegistry([credentialsId: "DockerHub"]) {
sh "docker push ${env.DOCKER_IMAGE}"
}
@@ -60,7 +60,7 @@ node('Docker') {
// sed -i 's#^FROM.*#FROM multiarch/debian-debootstrap:armhf-buster-slim#' armhf/Dockerfile
// docker build -t ${env.DOCKER_IMAGE_ARM} armhf
// """
-// if ( ! isCustomBuild()) {
+// if (! isCustomBuild()) {
// withDockerRegistry([credentialsId: "DockerHub"]) {
// sh "docker push ${env.DOCKER_IMAGE_ARM}"
// }
@@ -68,23 +68,22 @@ node('Docker') {
// }
// }
// },
- 'arm64': {
- script {
- dir('docker') {
- sh """
- docker build -t ${env.DOCKER_IMAGE_ARM64} --build-arg ARCH=arm64v8/ .
-
- """
+ 'arm64': {
+ script {
+ dir('docker') {
+ sh """
+ docker build -t ${env.DOCKER_IMAGE_ARM64} --build-arg ARCH=arm64v8/ .
- if ( ! isCustomBuild()) {
- withDockerRegistry([credentialsId: "DockerHub"]) {
- sh "docker push ${env.DOCKER_IMAGE_ARM64}"
+ """
- }
- }
- }
- }
- }
+ if (! isCustomBuild()) {
+ withDockerRegistry([credentialsId: "DockerHub"]) {
+ sh "docker push ${env.DOCKER_IMAGE_ARM64}"
+ }
+ }
+ }
+ }
+ }
)
}
stage('Build timestamp') {