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

35
Jenkinsfile vendored
View File

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