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 13:01:30 +01:00
parent 22432782a4
commit d00bd8e666

75
Jenkinsfile vendored
View File

@ -20,30 +20,9 @@ def ArrayList<String> getBranches(projectName){
def generateStage(name) {
return {
stage("ANTOS ${name} AMD64") {
//copyArtifacts(projectName: 'gitea-sync/antos/' + name, target: 'antos/frontend/' + name);
stage("ANTOS ${name}") {
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
'''
}
stage("ANTOS ${name} ARM") {
//copyArtifacts(projectName: 'gitea-sync/antos/' + name, target: 'antos/frontend/' + name);
env.tag = name;
env.arch = "armv7l";
//env.arch = "x86_64";
sh'''
echo "Deploy antos webapps for version $tag on architecture $arch"
set -e
@ -87,14 +66,56 @@ pipeline{
mkdir antos
'''
copyArtifacts(projectName: 'gitea-sync/antos-appimage/master', target: 'antos/');
script
{
parallel parallelStagesMap;
}
sh'''
tree antos
'''
}
stage("AMD64") {
agent {
docker {
image 'xsangle/ci-tools:bionic-amd64'
reuseNode true
}
}
steps {
script
{
parallel parallelStagesMap;
}
}
}
stage("ARM64") {
agent {
docker {
image 'xsangle/ci-tools:bionic-arm64'
reuseNode true
}
}
steps {
script
{
parallel parallelStagesMap;
}
}
}
stage("ARM") {
agent {
docker {
image 'xsangle/ci-tools:bionic-arm'
reuseNode true
}
}
steps {
script
{
parallel parallelStagesMap;
}
}
}
}
}
}