Joe Stanley
d9b5b9fe09
All checks were successful
Potlatch Loggers Organization/ComputerKeeper/pipeline/head This commit looks good
29 lines
932 B
Groovy
29 lines
932 B
Groovy
/*******************************************************************************
|
|
* ComputerKeeper Build Automation
|
|
* -----------------------------------------------------------------------------
|
|
*
|
|
* Build the application in a custom PyInstaller container to support function
|
|
* with Microsoft-Windows systems.
|
|
*
|
|
* 2022 - Stanley Solutions
|
|
* Joe Stanley
|
|
******************************************************************************/
|
|
|
|
node ('windows') {
|
|
|
|
// Prep Stage - Clone the Repository and Configure System as Needed.
|
|
stage('Prep') {
|
|
checkout scm
|
|
}
|
|
|
|
// Build Stage - Run the PyInstaller Steps to Generate an Executable.
|
|
stage('Build') {
|
|
bat """pyinstaller --noconfirm --onefile --windowed "./main.py" """
|
|
}
|
|
|
|
// Wrap Up - Archive the Generated Executables, Tear Down the Build System.
|
|
stage('Archive/Teardown') {
|
|
archiveArtifacts artifacts: "dist\\*.exe"
|
|
}
|
|
|
|
} |