Update 'Jenkinsfile'
All checks were successful
gitea-sync/antos-deb/pipeline/head This commit looks good

This commit is contained in:
dany 2023-01-01 12:56:51 +01:00
parent ee8ebccd46
commit 22432782a4

77
Jenkinsfile vendored
View File

@ -21,61 +21,34 @@ def ArrayList<String> getBranches(projectName){
def generateStage(name) { def generateStage(name) {
return { return {
stage("ANTOS ${name} AMD64") { stage("ANTOS ${name} AMD64") {
agent { //copyArtifacts(projectName: 'gitea-sync/antos/' + name, target: 'antos/frontend/' + name);
docker { env.tag = name;
image 'xsangle/ci-tools:bionic-amd64' env.arch = "x86_64";
reuseNode true sh'''
} echo "Deploy antos webapps for version $tag on architecture $arch"
} set -e
steps { set -x
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") { stage("ANTOS ${name} ARM64") {
agent { //copyArtifacts(projectName: 'gitea-sync/antos/' + name, target: 'antos/frontend/' + name);
docker { env.tag = name;
image 'xsangle/ci-tools:bionic-arm64' env.arch = "aarch64";
reuseNode true sh'''
} echo "Deploy antos webapps for version $tag on architecture $arch"
} set -e
steps { set -x
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} ARM64") { stage("ANTOS ${name} ARM") {
agent { //copyArtifacts(projectName: 'gitea-sync/antos/' + name, target: 'antos/frontend/' + name);
docker { env.tag = name;
image 'xsangle/ci-tools:bionic-arm' env.arch = "armv7l";
reuseNode true sh'''
} echo "Deploy antos webapps for version $tag on architecture $arch"
} set -e
steps { set -x
script{ '''
env.tag = name;
env.arch = "armv7l";
}
sh'''
echo "Deploy antos webapps for version $tag on architecture $arch"
set -e
set -x
'''
}
} }
} }
} }