https://github.com/carla-simulator/carla
Raw File
Tip revision: 5bc92268bb12eebe5593b0cee228dee8be9a073b authored by fdomf on 22 July 2019, 10:38:57 UTC
test jenkins
Tip revision: 5bc9226
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 '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 && \
                    git commit -m "Updated c++ docs" || true && \
                    git push'    
            }
        }
        stage('Deploy') {
            when { anyOf { branch "master"; buildingTag() } }
            steps {
                sh 'make deploy ARGS="--replace-latest --docker-push"'
            }
        }
    }

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