2024-08-27 15:16:11 -07:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
options {
|
|
|
|
buildDiscarder(
|
|
|
|
logRotator(
|
2024-08-27 15:20:30 -07:00
|
|
|
numToKeepStr: '5'
|
2024-08-27 15:16:11 -07:00
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Build on Linux') {
|
|
|
|
agent {
|
2024-10-05 19:22:01 -07:00
|
|
|
label 'flutter'
|
2024-08-27 15:16:11 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
sh '''
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
flutter pub get
|
|
|
|
flutter build linux
|
|
|
|
dart compile exe -o server bin/server.dart
|
|
|
|
|
|
|
|
cd build/linux/x64/release/bundle; tar -cvf ../../../../../client.tgz .
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
archiveArtifacts artifacts: 'server'
|
|
|
|
archiveArtifacts artifacts: '*.tgz'
|
|
|
|
|
|
|
|
deleteDir()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build Docker Images') {
|
|
|
|
agent {
|
|
|
|
label 'dockermain'
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
sh '''
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
docker build -t git.zontreck.com/ariascreations/conanservermanager:stable $(pwd)
|
|
|
|
docker push git.zontreck.com/ariascreations/conanservermanager:stable
|
|
|
|
|
|
|
|
docker build -t git.zontreck.com/ariascreations/conanservermanager:installer docker_images/installer
|
|
|
|
docker push git.zontreck.com/ariascreations/conanservermanager:installer
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
deleteDir()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Build on Windows') {
|
|
|
|
agent {
|
|
|
|
label 'windows'
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
bat 'flutter pub get'
|
|
|
|
bat 'flutter build windows'
|
2024-08-28 17:41:30 -07:00
|
|
|
bat 'mkdir out'
|
|
|
|
bat 'dart compile exe -o out\\server.exe bin\\server.dart'
|
2024-08-27 15:16:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
post {
|
|
|
|
always {
|
2024-08-28 17:41:30 -07:00
|
|
|
archiveArtifacts artifacts: "out\\*.exe", fingerprint: true
|
2024-08-27 15:16:11 -07:00
|
|
|
deleteDir()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-10-05 19:22:01 -07:00
|
|
|
}
|