2018-05-07 23:33:43 +08:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
environment {
|
2019-04-30 19:41:13 +08:00
|
|
|
UE4_ROOT = '/var/lib/jenkins/UnrealEngine_4.22'
|
2018-05-07 23:33:43 +08:00
|
|
|
}
|
|
|
|
|
2018-05-08 23:01:04 +08:00
|
|
|
options {
|
2018-07-10 22:26:05 +08:00
|
|
|
buildDiscarder(logRotator(numToKeepStr: '3', artifactNumToKeepStr: '3'))
|
2018-05-08 23:01:04 +08:00
|
|
|
}
|
|
|
|
|
2018-05-07 23:33:43 +08:00
|
|
|
stages {
|
|
|
|
|
|
|
|
stage('Setup') {
|
|
|
|
steps {
|
2018-07-06 19:14:48 +08:00
|
|
|
sh 'make setup'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-10 22:26:05 +08:00
|
|
|
stage('Build') {
|
2018-07-06 19:14:48 +08:00
|
|
|
steps {
|
|
|
|
sh 'make LibCarla'
|
|
|
|
sh 'make PythonAPI'
|
2019-10-07 22:30:51 +08:00
|
|
|
sh 'make TrafficManager'
|
2018-07-10 22:26:05 +08:00
|
|
|
sh 'make CarlaUE4Editor'
|
2019-04-16 20:09:55 +08:00
|
|
|
sh 'make examples'
|
2018-07-06 19:14:48 +08:00
|
|
|
}
|
2018-10-16 17:18:12 +08:00
|
|
|
post {
|
|
|
|
always {
|
2019-03-29 01:35:31 +08:00
|
|
|
archiveArtifacts 'PythonAPI/carla/dist/*.egg'
|
2018-10-16 17:18:12 +08:00
|
|
|
}
|
|
|
|
}
|
2018-07-06 19:14:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|
2018-07-10 22:26:05 +08:00
|
|
|
post {
|
|
|
|
always {
|
|
|
|
junit 'Build/test-results/*.xml'
|
|
|
|
archiveArtifacts 'profiler.csv'
|
|
|
|
}
|
2018-05-07 23:33:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-26 21:27:17 +08:00
|
|
|
stage('Retrieve Content') {
|
|
|
|
steps {
|
|
|
|
sh './Update.sh'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-07 23:33:43 +08:00
|
|
|
stage('Package') {
|
|
|
|
steps {
|
2018-07-06 19:14:48 +08:00
|
|
|
sh 'make package'
|
2019-12-11 20:42:56 +08:00
|
|
|
sh 'make package ARGS="--packages=AdditionalMaps --clean-intermediate"'
|
2018-05-07 23:33:43 +08:00
|
|
|
}
|
2018-07-10 22:26:05 +08:00
|
|
|
post {
|
|
|
|
always {
|
|
|
|
archiveArtifacts 'Dist/*.tar.gz'
|
|
|
|
}
|
|
|
|
}
|
2018-05-07 23:33:43 +08:00
|
|
|
}
|
2018-05-08 23:01:04 +08:00
|
|
|
|
2019-03-08 21:41:23 +08:00
|
|
|
stage('Smoke Tests') {
|
|
|
|
steps {
|
2019-06-05 00:48:11 +08:00
|
|
|
sh 'DISPLAY= ./Dist/*/LinuxNoEditor/CarlaUE4.sh -opengl --carla-rpc-port=3654 --carla-streaming-port=0 -nosound > CarlaUE4.log &'
|
2019-03-08 21:41:23 +08:00
|
|
|
sh 'make smoke_tests ARGS="--xml"'
|
2019-04-16 20:09:55 +08:00
|
|
|
sh 'make run-examples ARGS="localhost 3654"'
|
2019-03-08 21:41:23 +08:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
archiveArtifacts 'CarlaUE4.log'
|
|
|
|
junit 'Build/test-results/smoke-tests-*.xml'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-05-03 01:58:03 +08:00
|
|
|
|
|
|
|
stage('Deploy') {
|
|
|
|
when { anyOf { branch "master"; buildingTag() } }
|
|
|
|
steps {
|
2019-06-18 22:14:18 +08:00
|
|
|
sh 'make deploy ARGS="--replace-latest --docker-push"'
|
2019-05-03 01:58:03 +08:00
|
|
|
}
|
|
|
|
}
|
2019-08-02 23:40:05 +08:00
|
|
|
|
2019-07-30 21:17:09 +08:00
|
|
|
stage('Doxygen') {
|
|
|
|
when { anyOf { branch "master"; buildingTag() } }
|
|
|
|
steps {
|
|
|
|
sh 'make docs'
|
|
|
|
sh 'rm -rf ~/carla-simulator.github.io/Doxygen'
|
|
|
|
sh 'cp -rf ./Doxygen ~/carla-simulator.github.io/'
|
|
|
|
sh 'cd ~/carla-simulator.github.io && \
|
|
|
|
git pull && \
|
|
|
|
git add Doxygen && \
|
2019-08-08 23:48:21 +08:00
|
|
|
git commit -m "Updated c++ docs" || true && \
|
2019-07-30 21:17:09 +08:00
|
|
|
git push'
|
|
|
|
}
|
|
|
|
}
|
2018-05-07 23:33:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
post {
|
2018-05-08 23:01:04 +08:00
|
|
|
always {
|
|
|
|
deleteDir()
|
2018-05-07 23:33:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|