Jenkins Test #11
This commit is contained in:
29
Jenkinsfile
vendored
29
Jenkinsfile
vendored
@@ -52,23 +52,28 @@ pipeline {
|
|||||||
stage('Package Debug') {
|
stage('Package Debug') {
|
||||||
when { expression { params.BUILD_TYPE in ['Both','Debug'] } }
|
when { expression { params.BUILD_TYPE in ['Both','Debug'] } }
|
||||||
steps {
|
steps {
|
||||||
bat 'if not exist "%WORKSPACE%\\builds" mkdir "%WORKSPACE%\\builds"'
|
powershell """
|
||||||
bat """
|
if (-Not (Test-Path \"${env.WORKSPACE}\\builds\")) {
|
||||||
powershell -Command ^
|
New-Item -ItemType Directory -Path \"${env.WORKSPACE}\\builds\" | Out-Null
|
||||||
"Compress-Archive -Path \\\"%WORKSPACE%\\\\**\\\\Debug\\\\*\\\" ^
|
}
|
||||||
-DestinationPath \\\"%WORKSPACE%\\\\builds\\\\KhaoticEngineReborn_Debug.zip\\\" -Force"
|
Compress-Archive -Path \"${env.WORKSPACE}\\**\\Debug\\*\" `
|
||||||
"""
|
-DestinationPath \"${env.WORKSPACE}\\builds\\KhaoticEngineReborn_Debug.zip\" `
|
||||||
|
-Force
|
||||||
|
"""
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Package Release') {
|
stage('Package Release') {
|
||||||
when { expression { params.BUILD_TYPE in ['Both','Release'] } }
|
when { expression { params.BUILD_TYPE in ['Both','Release'] } }
|
||||||
steps {
|
steps {
|
||||||
bat 'if not exist "%WORKSPACE%\\builds" mkdir "%WORKSPACE%\\builds"'
|
powershell """
|
||||||
bat """
|
if (-Not (Test-Path \"${env.WORKSPACE}\\builds\")) {
|
||||||
powershell -Command ^
|
New-Item -ItemType Directory -Path \"${env.WORKSPACE}\\builds\" | Out-Null
|
||||||
"Compress-Archive -Path \\\"%WORKSPACE%\\\\**\\\\Release\\\\*\\\" ^
|
}
|
||||||
-DestinationPath \\\"%WORKSPACE%\\\\builds\\\\KhaoticEngineReborn_Release.zip\\\" -Force"
|
Compress-Archive -Path \"${env.WORKSPACE}\\**\\Release\\*\" `
|
||||||
"""
|
-DestinationPath \"${env.WORKSPACE}\\builds\\KhaoticEngineReborn_Release.zip\" `
|
||||||
|
-Force
|
||||||
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user