From ee8ebccd46c431d7712948f5e90f91f53039562a Mon Sep 17 00:00:00 2001 From: dany Date: Sun, 1 Jan 2023 12:51:58 +0100 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 77 ++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 52 insertions(+), 25 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 17add89..3265093 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,34 +21,61 @@ def ArrayList getBranches(projectName){ def generateStage(name) { return { stage("ANTOS ${name} AMD64") { - //copyArtifacts(projectName: 'gitea-sync/antos/' + name, target: 'antos/frontend/' + name); - env.tag = name; - env.arch = "x86_64"; - sh''' - echo "Deploy antos webapps for version $tag on architecture $arch" - set -e - set -x - ''' + agent { + docker { + image 'xsangle/ci-tools:bionic-amd64' + reuseNode true + } + } + steps { + script{ + env.tag = name; + env.arch = "x86_64"; + } + sh''' + echo "Deploy antos webapps for version $tag on architecture $arch" + set -e + set -x + ''' + } } stage("ANTOS ${name} ARM64") { - //copyArtifacts(projectName: 'gitea-sync/antos/' + name, target: 'antos/frontend/' + name); - env.tag = name; - env.arch = "aarch64"; - sh''' - echo "Deploy antos webapps for version $tag on architecture $arch" - set -e - set -x - ''' + agent { + docker { + image 'xsangle/ci-tools:bionic-arm64' + reuseNode true + } + } + steps { + script{ + env.tag = name; + env.arch = "aarch64"; + } + sh''' + echo "Deploy antos webapps for version $tag on architecture $arch" + set -e + set -x + ''' + } } - stage("ANTOS ${name} ARM") { - //copyArtifacts(projectName: 'gitea-sync/antos/' + name, target: 'antos/frontend/' + name); - env.tag = name; - env.arch = "armv7l"; - sh''' - echo "Deploy antos webapps for version $tag on architecture $arch" - set -e - set -x - ''' + stage("ANTOS ${name} ARM64") { + agent { + docker { + image 'xsangle/ci-tools:bionic-arm' + reuseNode true + } + } + steps { + script{ + env.tag = name; + env.arch = "armv7l"; + } + sh''' + echo "Deploy antos webapps for version $tag on architecture $arch" + set -e + set -x + ''' + } } } }