https://github.com/carla-simulator/carla
Raw File
Tip revision: 665066548a77eb0e52d24e0b2afbe0b804683468 authored by carla-admin on 19 July 2019, 13:33:49 UTC
jenkins update
Tip revision: 6650665
Jenkinsfile
pipeline {
    agent any

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

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

    stages {

        stage('Docs') {
            steps {
                sh 'make docs'
                sh 'mv Doxygen ~/carla-simulator.github.io'
                sh 'cd ~/carla-simulator.github.io'
                sh 'git add Doxygen'
                sh 'git commit -m "Updated c++ docs"'
                sh 'git push'
                sh 'cd ~/carla'
            }
        }

        stage('Deploy') {
            when { anyOf { branch "master"; buildingTag() } }
            steps {
                sh 'make deploy ARGS="--replace-latest --docker-push"'
            }
        }
    }

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