BuildEnvironments/Jenkinsfile

271 lines
6.7 KiB
Text
Raw Normal View History

2024-09-13 01:21:03 -07:00
pipeline {
agent any
options {
buildDiscarder(
logRotator(
numToKeepStr: '5'
)
)
}
stages {
stage("Clean Up Repo") {
agent {
2024-09-13 01:46:59 -07:00
label "dockermain"
2024-09-13 01:21:03 -07:00
}
2024-09-13 01:33:35 -07:00
steps {
2024-09-13 01:21:03 -07:00
2024-09-13 01:33:35 -07:00
script {
sh '''
#!/bin/bash
git reset --hard
git clean -xfd
'''
}
2024-09-13 01:21:03 -07:00
}
}
stage("Clean Docker Caches") {
agent {
2024-09-13 01:46:59 -07:00
label "dockermain"
2024-09-13 01:21:03 -07:00
}
2024-09-13 01:33:35 -07:00
steps {
script {
sh '''
#!/bin/bash
2024-09-13 01:21:03 -07:00
2024-09-13 01:33:35 -07:00
docker system prune --volumes -f
'''
}
2024-09-13 01:21:03 -07:00
}
}
stage("Stop Workers") {
agent {
2024-09-13 01:46:59 -07:00
label "dockermain"
2024-09-13 01:21:03 -07:00
}
2024-09-13 01:33:35 -07:00
steps {
script {
sh '''
#!/bin/bash
docker-compose down
2024-09-13 01:21:03 -07:00
2024-09-13 01:33:35 -07:00
docker stop linuxbuilder || true
docker stop linuxfs || true
docker stop arch || true
2024-09-13 01:33:35 -07:00
'''
}
2024-09-13 01:21:03 -07:00
}
}
stage("Build Debian Base") {
agent {
2024-09-13 01:46:59 -07:00
label "dockermain"
2024-09-13 01:21:03 -07:00
}
2024-09-13 01:33:35 -07:00
steps {
script {
sh '''
#!/bin/bash
2024-09-13 01:21:03 -07:00
2024-09-13 01:33:35 -07:00
docker build -t git.zontreck.com/ariascreations/buildenvironments:debian DebianBase
docker push git.zontreck.com/ariascreations/buildenvironments:debian
'''
}
2024-09-13 01:21:03 -07:00
}
}
stage("Builder Debian Compiler") {
agent {
2024-09-13 01:46:59 -07:00
label "dockermain"
2024-09-13 01:21:03 -07:00
}
2024-09-13 01:33:35 -07:00
steps {
script {
sh '''
#!/bin/bash
2024-09-13 01:21:03 -07:00
2024-09-13 01:33:35 -07:00
docker build -t git.zontreck.com/ariascreations/buildenvironments:debianbuild DebianBuilder
docker push git.zontreck.com/ariascreations/buildenvironments:debianbuild
'''
}
2024-09-13 01:21:03 -07:00
}
}
stage("Build ADK") {
agent {
2024-09-13 01:46:59 -07:00
label "dockermain"
2024-09-13 01:21:03 -07:00
}
2024-09-13 01:33:35 -07:00
steps {
script {
sh '''
#!/bin/bash
2024-09-13 01:21:03 -07:00
2024-09-13 01:33:35 -07:00
docker build -t git.zontreck.com/ariascreations/buildenvironments:adk AndroidSDK
docker push git.zontreck.com/ariascreations/buildenvironments:adk
'''
}
2024-09-13 01:21:03 -07:00
}
}
stage("Build Flutter") {
agent {
2024-09-13 01:46:59 -07:00
label "dockermain"
2024-09-13 01:21:03 -07:00
}
2024-09-13 01:33:35 -07:00
steps {
script {
sh '''
#!/bin/bash
2024-09-13 01:21:03 -07:00
2024-09-13 01:33:35 -07:00
docker build -t git.zontreck.com/ariascreations/buildenvironments:flutter FlutterSdk
docker push git.zontreck.com/ariascreations/buildenvironments:flutter
'''
}
2024-09-13 01:21:03 -07:00
}
}
stage("Build AppImage Layer") {
agent {
2024-09-13 01:46:59 -07:00
label "dockermain"
2024-09-13 01:21:03 -07:00
}
2024-09-13 01:33:35 -07:00
steps {
script {
sh '''
#!/bin/bash
2024-09-13 01:21:03 -07:00
2024-09-13 01:33:35 -07:00
docker build -t git.zontreck.com/ariascreations/buildenvironments:appimage AppImage
docker push git.zontreck.com/ariascreations/buildenvironments:appimage
'''
}
2024-09-13 01:21:03 -07:00
}
}
stage("Build Linux Node") {
agent {
2024-09-13 01:46:59 -07:00
label "dockermain"
2024-09-13 01:21:03 -07:00
}
2024-09-13 01:33:35 -07:00
steps {
script {
sh '''
#!/bin/bash
2024-09-13 01:21:03 -07:00
2024-09-13 01:33:35 -07:00
docker build -t git.zontreck.com/ariascreations/buildenvironments:linux LinuxGeneralCompiler
docker push git.zontreck.com/ariascreations/buildenvironments:linux
'''
}
2024-09-13 01:21:03 -07:00
}
}
stage("Build Linux Firestorm Node") {
agent {
2024-09-13 01:46:59 -07:00
label "dockermain"
2024-09-13 01:21:03 -07:00
}
2024-09-13 01:33:35 -07:00
steps {
script {
sh '''
#!/bin/bash
2024-09-13 01:21:03 -07:00
2024-09-13 01:33:35 -07:00
docker build -t git.zontreck.com/ariascreations/buildenvironments:linuxfs FirestormLinux
docker push git.zontreck.com/ariascreations/buildenvironments:linuxfs
'''
}
2024-09-13 01:21:03 -07:00
}
}
2024-10-05 19:52:25 -07:00
stage("Build Arch Base") {
agent {
label "dockermain"
}
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") {
agent {
label "dockermain"
}
steps {
script {
sh '''
#!/bin/bash
docker build -t git.zontreck.com/ariascreations/buildenvironments:archdev ArchBuilder
docker push git.zontreck.com/ariascreations/buildenvironments:archdev
'''
}
}
}
2024-11-07 15:12:31 -07:00
stage("Build DIND Image") {
agent {
label "dockermain"
}
steps {
script {
sh '''
#!/bin/bash
docker build -t git.zontreck.com/ariascreations/buildenvironments:dindagent DINDAgent
docker push git.zontreck.com/ariascreations/buildenvironments:dindagent
'''
}
}
}
2024-11-07 16:38:58 -07:00
stage("Build NextCloud Image") {
agent {
label "dockermain"
}
steps {
script {
sh '''
#!/bin/bash
docker build -t git.zontreck.com/ariascreations/buildenvironments:nextcloud NextCloud
docker push git.zontreck.com/ariascreations/buildenvironments:nextcloud
'''
}
}
}
2024-09-13 01:35:43 -07:00
stage("Clean Up Caches") {
2024-09-13 01:21:03 -07:00
agent {
2024-09-13 01:46:59 -07:00
label "dockermain"
2024-09-13 01:21:03 -07:00
}
2024-09-13 01:33:35 -07:00
steps {
script {
sh '''
#!/bin/bash
2024-09-13 01:21:03 -07:00
2024-09-13 01:33:35 -07:00
docker system prune --volumes -f
'''
}
2024-09-13 01:21:03 -07:00
}
}
}
}