pipeline { agent any options { buildDiscarder( logRotator( numToKeepStr: '5' ) ) } stages { stage("Clean Up Repo") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash git reset --hard git clean -xfd ''' } } } stage("Clean Docker Caches") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker system prune --volumes -f ''' } } } stage("Stop Workers") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker-compose down docker stop linuxbuilder || true docker stop linuxfs || true ''' } } } stage("Build Debian Base") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker build -t git.zontreck.com/ariascreations/buildenvironments:debian DebianBase docker push git.zontreck.com/ariascreations/buildenvironments:debian ''' } } } stage("Builder Debian Compiler") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker build -t git.zontreck.com/ariascreations/buildenvironments:debianbuild DebianBuilder docker push git.zontreck.com/ariascreations/buildenvironments:debianbuild ''' } } } stage("Build ADK") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker build -t git.zontreck.com/ariascreations/buildenvironments:adk AndroidSDK docker push git.zontreck.com/ariascreations/buildenvironments:adk ''' } } } stage("Build Flutter") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker build -t git.zontreck.com/ariascreations/buildenvironments:flutter FlutterSdk docker push git.zontreck.com/ariascreations/buildenvironments:flutter ''' } } } stage("Build AppImage Layer") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker build -t git.zontreck.com/ariascreations/buildenvironments:appimage AppImage docker push git.zontreck.com/ariascreations/buildenvironments:appimage ''' } } } stage("Build Linux Node") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker build -t git.zontreck.com/ariascreations/buildenvironments:linux LinuxGeneralCompiler docker push git.zontreck.com/ariascreations/buildenvironments:linux ''' } } } stage("Build Linux Firestorm Node") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker build -t git.zontreck.com/ariascreations/buildenvironments:linuxfs FirestormLinux docker push git.zontreck.com/ariascreations/buildenvironments:linuxfs ''' } } } stage("Clean Up Caches") { agent { label "dockermain" } steps { script { sh ''' #!/bin/bash docker system prune --volumes -f ''' } } } } }