BuildEnvironments/Jenkinsfile
2024-11-13 13:49:12 -07:00

230 lines
No EOL
6.1 KiB
Groovy

pipeline {
agent {
label 'dockermain'
}
options {
buildDiscarder(
logRotator(
numToKeepStr: '5'
)
)
}
stages {
stage("Clean Up Repo") {
steps {
script {
sh '''
#!/bin/bash
git reset --hard
git clean -xfd
'''
}
}
}
stage("Clean Docker Caches") {
steps {
script {
sh '''
#!/bin/bash
docker system prune --volumes -f
'''
}
}
}
stage("Stop Workers") {
steps {
script {
sh '''
#!/bin/bash
docker-compose down
docker stop linuxbuilder || true
docker stop linuxfs || true
docker stop arch || true
'''
}
}
}
stage("Build Debian Base") {
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") {
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") {
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") {
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") {
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") {
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") {
steps {
script {
sh '''
#!/bin/bash
docker build -t git.zontreck.com/ariascreations/buildenvironments:linuxfs FirestormLinux
docker push git.zontreck.com/ariascreations/buildenvironments:linuxfs
'''
}
}
}
stage("Build Arch Base") {
steps {
script {
sh '''
#!/bin/bash
docker build -t git.zontreck.com/ariascreations/buildenvironments:arch ArchBase
docker push git.zontreck.com/ariascreations/buildenvironments:arch
'''
}
}
}
stage("Build Arch Develop") {
steps {
script {
sh '''
#!/bin/bash
docker build -t git.zontreck.com/ariascreations/buildenvironments:archdev ArchBuilder
docker push git.zontreck.com/ariascreations/buildenvironments:archdev
'''
}
}
}
stage("Build DIND Image") {
steps {
script {
sh '''
#!/bin/bash
docker build -t git.zontreck.com/ariascreations/buildenvironments:dindagent DINDAgent
docker push git.zontreck.com/ariascreations/buildenvironments:dindagent
'''
}
}
}
stage("Build NextCloud Image") {
steps {
script {
sh '''
#!/bin/bash
docker build -t git.zontreck.com/ariascreations/buildenvironments:nextcloud NextCloud
docker push git.zontreck.com/ariascreations/buildenvironments:nextcloud
'''
}
}
}
stage("Build Jenkins Image") {
steps {
script {
sh '''
#!/bin/bash
docker build -t git.zontreck.com/ariascreations/buildenvironments:jenkins Jenkins
docker push git.zontreck.com/ariascreations/buildenvironments:jenkins
'''
}
}
}
stage("Clean Up Caches") {
steps {
script {
sh '''
#!/bin/bash
docker system prune --volumes -f
'''
}
}
}
}
}