2018-05-07 23:33:43 +08:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
environment {
|
|
|
|
UE4_ROOT = '/var/lib/jenkins/UnrealEngine_4.18'
|
|
|
|
}
|
|
|
|
|
2018-05-08 23:01:04 +08:00
|
|
|
options {
|
|
|
|
buildDiscarder(logRotator(numToKeepStr: '6', artifactNumToKeepStr: '6'))
|
|
|
|
}
|
|
|
|
|
2018-05-07 23:33:43 +08:00
|
|
|
stages {
|
|
|
|
|
|
|
|
stage('Setup') {
|
|
|
|
steps {
|
2018-05-09 02:03:48 +08:00
|
|
|
sh './Setup.sh --jobs=12'
|
2018-05-07 23:33:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
sh './Rebuild.sh --no-editor'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Package') {
|
|
|
|
steps {
|
|
|
|
sh './Package.sh --clean-intermediate'
|
|
|
|
}
|
|
|
|
}
|
2018-05-08 23:01:04 +08:00
|
|
|
|
2018-05-07 23:33:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
post {
|
2018-05-08 23:01:04 +08:00
|
|
|
|
|
|
|
always {
|
2018-05-07 23:33:43 +08:00
|
|
|
archiveArtifacts 'Dist/*.tar.gz'
|
2018-05-08 23:01:04 +08:00
|
|
|
deleteDir()
|
2018-05-07 23:33:43 +08:00
|
|
|
}
|
2018-05-08 23:01:04 +08:00
|
|
|
|
2018-05-07 23:33:43 +08:00
|
|
|
}
|
|
|
|
}
|