Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env groovy
- pipeline {
- agent {
- dockerfile {
- filename 'Dockerfile'
- dir 'ci/docker'
- // --net is needed to be able to connect to host machine
- args '--net="host" -u root -v $HOME/.local/share/unity3d/:/root/.local/share/unity3d/'
- }
- }
- stages {
- stage('Pre-Build') {
- steps {
- sh 'cp "$PWD/bo-unity/Assets/Plugins/GitHub/Editor/libsfw.so" /opt/Unity/Editor/Data/Mono/lib/'
- }
- }
- stage('Testing') {
- steps {
- sh 'xvfb-run --auto-servernum --server-args="-screen 0 1x1x24" Unity -batchmode -CacheServerIPAddress=192.168.1.3:8126 -projectpath $PWD/bo-unity/ -logFile -runEditorTests || true'
- }
- post {
- success {
- nunit testResultsPattern: 'bo-unity/TestResults*.xml'
- }
- }
- }
- stage('Build FauxBoViewer (Android)') {
- steps {
- sh 'xvfb-run --auto-servernum --server-args="-screen 0 1x1x24" Unity -batchmode -CacheServerIPAddress=192.168.1.3:8126 -projectpath $PWD/bo-unity/ -logFile -executeMethod Embodied.Editor.JenkinsRobotBuilder.BuildGame -buildtype=FauxBoViewer -platformtype=Android -configtype=Development -outputpath=/root/'
- }
- }
- stage('Build Normal (Android)') {
- steps {
- sh 'xvfb-run --auto-servernum --server-args="-screen 0 1x1x24" Unity -batchmode -CacheServerIPAddress=192.168.1.3:8126 -projectpath $PWD/bo-unity/ -logFile -executeMethod Embodied.Editor.JenkinsRobotBuilder.BuildGame -buildtype=Normal -platformtype="Android" -configtype=Development -outputpath=/root/'
- }
- }
- stage('Build Standalone (Mac)') {
- steps {
- sh 'xvfb-run --auto-servernum --server-args="-screen 0 1x1x24" Unity -batchmode -CacheServerIPAddress=192.168.1.3:8126 -projectpath $PWD/bo-unity/ -logFile -executeMethod Embodied.Editor.JenkinsRobotBuilder.BuildGame -buildtype=Normal -platformtype=Mac -configtype=Development -outputpath=/root/'
- }
- }
- stage('Build Standalone (Windows)') {
- steps {
- sh 'xvfb-run --auto-servernum --server-args="-screen 0 1x1x24" Unity -batchmode -CacheServerIPAddress=192.168.1.3:8126 -projectpath $PWD/bo-unity/ -logFile -executeMethod Embodied.Editor.JenkinsRobotBuilder.BuildGame -buildtype=Normal -platformtype="PC" -configtype=Development -outputpath=/root/'
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement