j
This commit is contained in:
parent
47d8af9953
commit
e08074c22e
18
jenkinsfile
18
jenkinsfile
@ -1,26 +1,26 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
label 'python' // Verwendet den Jenkins-Agenten mit dem Label 'python'
|
label 'python' // Uses the Jenkins agent with the label 'python'
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
bat """
|
bat """
|
||||||
@echo off
|
@echo off
|
||||||
rem Setze den Pfad zum Arbeitsverzeichnis
|
rem Set the path to the workspace directory
|
||||||
cd C:\\Program Files\\jenkins-agent\\workspace\\TS
|
cd C:/Program Files/jenkins-agent/workspace/TS
|
||||||
|
|
||||||
rem Lösche den "dist" Ordner, falls er existiert
|
rem Delete the "dist" folder if it exists
|
||||||
if exist dist rmdir /s /q dist
|
if exist dist rmdir /s /q dist
|
||||||
|
|
||||||
rem Führe PyInstaller aus, um die Python-Anwendung in eine einzige ausführbare Datei zu kompilieren
|
rem Use PyInstaller to compile the Python application into a single executable file
|
||||||
python -m PyInstaller --onefile main.py
|
python -m PyInstaller --onefile main.py
|
||||||
|
|
||||||
rem Verschiebe den "resources" Ordner in den "dist" Ordner
|
rem Move the "resources" folder into the "dist" folder
|
||||||
runas /user:Jenkins move /Y resources dist
|
move resources dist
|
||||||
|
|
||||||
rem Ausgabe einer Erfolgsmeldung
|
rem Output a success message
|
||||||
echo Resources Ordner wurde erfolgreich in den dist Ordner verschoben.
|
echo Resources folder was successfully moved to the dist folder.
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user