carla/Jenkinsfile

69 lines
1.2 KiB
Plaintext
Raw Normal View History

2018-05-07 23:33:43 +08:00
pipeline {
agent any
environment {
2018-07-06 19:14:48 +08:00
UE4_ROOT = '/var/lib/jenkins/UnrealEngine_4.19'
2018-05-07 23:33:43 +08:00
}
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-07-06 19:14:48 +08:00
sh 'make setup'
2018-05-07 23:33:43 +08:00
}
}
2018-07-06 19:14:48 +08:00
stage('Download Content') {
2018-05-07 23:33:43 +08:00
steps {
2018-07-06 19:14:48 +08:00
sh './Update.sh'
}
}
stage('LibCarla') {
steps {
sh 'make LibCarla'
}
}
stage('PythonAPI') {
steps {
sh 'make PythonAPI'
}
}
stage('Unit Tests') {
steps {
2018-07-07 00:14:38 +08:00
sh 'make check ARGS="--all --xml"'
2018-07-06 19:14:48 +08:00
}
}
stage('CarlaUE4Editor') {
steps {
sh 'make CarlaUE4Editor'
2018-05-07 23:33:43 +08:00
}
}
stage('Package') {
steps {
2018-07-06 19:14:48 +08:00
sh 'make package'
2018-05-07 23:33:43 +08:00
}
}
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-07-07 00:14:38 +08:00
junit 'Build/test-results/*.xml'
archiveArtifacts 'profiler.csv'
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
}
}