ComputerKeeper/Jenkinsfile
Joe Stanley 5eb7303247
All checks were successful
Potlatch Loggers Organization/ComputerKeeper/pipeline/head This commit looks good
let's give this a shot?
2022-11-06 20:06:29 -08:00

37 lines
1.1 KiB
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
stage('Archive') {
// Provide Credentials to Upload to Gitea
withCredentials([
usernamePassword(credentialsId: 'gitea-jenkinsbot',
usernameVariable: 'GITEA_USER',
passwordVariable: 'GITEA_PASS')
]) {
// Publish the Latest
bat "python publish_package.py"
}
}
}