falldamagestudio / UE-Jenkins-BuildSystem

Build Unreal Engine & games with Jenkins on GKE/GCE
MIT License
46 stars 11 forks source link

Ensure all jobs also upload build artifacts #34

Open Kalmalyzer opened 3 years ago

Kalmalyzer commented 3 years ago

Some of the Linux jobs already do this. Ensure that all Linux and Windows build jobs do it. Example from a Linux job:

        script {
            sh "rm -rf Logs"
          try {
            sh """
                ./Scripts/Linux/BuildSteps/BuildGame.sh \$(realpath ./ExampleGame/ExampleGame.uproject) Linux Development ExampleGame \$(realpath ./LocallyBuiltGame) \$(realpath ./Logs)
            """
          } finally {
            archiveArtifacts 'Logs/**/*'
          }