https://github.com/carla-simulator/carla
Revision 27c472fce6480a31a0edc40f507b87a2cd369324 authored by Manish on 28 February 2019, 13:14:50 UTC, committed by Manish on 28 February 2019, 13:14:50 UTC
1 parent d7b2817
Raw File
Tip revision: 27c472fce6480a31a0edc40f507b87a2cd369324 authored by Manish on 28 February 2019, 13:14:50 UTC
Improved stop signs and fixed pylint messages
Tip revision: 27c472f
Jenkinsfile
pipeline {
    agent any

    environment {
        UE4_ROOT = '/var/lib/jenkins/UnrealEngine_4.21'
    }

    options {
        buildDiscarder(logRotator(numToKeepStr: '3', artifactNumToKeepStr: '3'))
    }

    stages {

        stage('Setup') {
            steps {
                sh 'make setup'
            }
        }

        stage('Build') {
            steps {
                sh 'make LibCarla'
                sh 'make PythonAPI'
                sh 'make CarlaUE4Editor'
            }
            post {
                always {
                    archiveArtifacts 'PythonAPI/dist/*.egg'
                }
            }
        }

        stage('Unit Tests') {
            steps {
                sh 'make check ARGS="--all --xml"'
            }
            post {
                always {
                    junit 'Build/test-results/*.xml'
                    archiveArtifacts 'profiler.csv'
                }
            }
        }

        stage('Retrieve Content') {
            steps {
                sh './Update.sh'
            }
        }

        stage('Package') {
            steps {
                sh 'make package'
            }
            post {
                always {
                    archiveArtifacts 'Dist/*.tar.gz'
                }
            }
        }

    }

    post {
        always {
            deleteDir()
        }
    }
}
back to top