Update 'Jenkinsfile'
Some checks failed
gitea-sync/antos-deb/pipeline/head There was a failure building this commit

This commit is contained in:
dany 2023-01-01 12:51:58 +01:00
parent e8f7aef43d
commit ee8ebccd46

77
Jenkinsfile vendored
View File

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