fix jenkins

This commit is contained in:
Chikashi Miyama 2019-07-15 20:54:27 +02:00
parent 077ef4eed7
commit a29f36d404

8
Jenkinsfile vendored
View file

@ -6,17 +6,15 @@ 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('Unity Build'){ stage('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' echo 'Building Pd Project'
cmakeBuild buildDir: 'build', buildType: 'Release', cleanBuild: true, generator: 'Visual Studio 14 2015 Win64', installation: 'Standard', sourceDir: 'pdshmem' cmakeBuild buildDir: 'build', cleanBuild: true, generator: 'Visual Studio 15 2017 Win64', installation: 'Standard', sourceDir: 'pdshmem', steps: [[args: '--config Release', withCmake: true]]
fileOperations([folderCreateOperation('pd'), fileOperations([folderCreateOperation('pd'), fileCopyOperation(excludes: '', flattenFiles: true, includes: 'pdshmem/bin/**/*', targetLocation: '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"