add pd build
This commit is contained in:
parent
f9a8387aa7
commit
c34ed9c64d
1 changed files with 10 additions and 1 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
@ -6,16 +6,24 @@ pipeline {
|
||||||
MXBUILD = "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\MSBuild\\15.0\\Bin\\MSBuild.exe\""
|
MXBUILD = "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\MSBuild\\15.0\\Bin\\MSBuild.exe\""
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Build'){
|
stage('Unity Build'){
|
||||||
steps{
|
steps{
|
||||||
|
|
||||||
echo 'Generate Build Number File'
|
echo 'Generate Build Number File'
|
||||||
writeFile file: 'UnityProject/Assets/Resources/buildNumber.txt', text: "${BUILD_NUMBER}"
|
writeFile file: 'UnityProject/Assets/Resources/buildNumber.txt', text: "${BUILD_NUMBER}"
|
||||||
|
|
||||||
|
echo 'Building Pd Project'
|
||||||
|
cmakeBuild buildDir: 'build', buildType: 'Release', cleanBuild: true, generator: 'Visual Studio 14 2015 Win64', installation: 'Standard', sourceDir: 'pdshmem'
|
||||||
|
fileOperations([folderCreateOperation('pd'),
|
||||||
|
fileCopyOperation(excludes: '', flattenFiles: false, includes: 'pdshmem/bin/pdshmem.dll', targetLocation: 'pd'),
|
||||||
|
fileCopyOperation(excludes: '', flattenFiles: false, includes: 'pdshmem/bin/*.pd', targetLocation: 'pd')])
|
||||||
|
|
||||||
echo 'Building Unity Project'
|
echo 'Building Unity Project'
|
||||||
bat "${RUBY} run -u 2018.4.3f1 -r -- -batchmode -nographics -quit -projectPath '${workspace}\\UnityProject' -executeMethod AppBuilder.Build"
|
bat "${RUBY} run -u 2018.4.3f1 -r -- -batchmode -nographics -quit -projectPath '${workspace}\\UnityProject' -executeMethod AppBuilder.Build"
|
||||||
|
|
||||||
echo 'Stash unity build'
|
echo 'Stash unity build'
|
||||||
stash includes: 'bin/**/*', name: 'unity build'
|
stash includes: 'bin/**/*', name: 'unity build'
|
||||||
|
stash includes: 'pd/**/*', name: 'pd build'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Test'){
|
stage('Test'){
|
||||||
|
@ -39,6 +47,7 @@ pipeline {
|
||||||
steps{
|
steps{
|
||||||
echo 'publish Build'
|
echo 'publish Build'
|
||||||
unstash 'installer build'
|
unstash 'installer build'
|
||||||
|
unstash 'pd build'
|
||||||
|
|
||||||
cifsPublisher(publishers: [[configName: 'Cylvester Share', transfers: [[cleanRemote: false, excludes: '', flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'Build${BUILD_NUMBER}', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'SoundVision.msi']], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true]])
|
cifsPublisher(publishers: [[configName: 'Cylvester Share', transfers: [[cleanRemote: false, excludes: '', flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'Build${BUILD_NUMBER}', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'SoundVision.msi']], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true]])
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue