~aleteoryx/muditaos

6acbe534e2e9f41e3d4f74a0905d7a736729f9cb — Radoslaw Wicik 4 years ago 0f3fb7c
[EGD-6837] Add post merge pipeline and ram disk build

Add support build in ram disk
1 files changed, 33 insertions(+), 7 deletions(-)

M Jenkinsfile
M Jenkinsfile => Jenkinsfile +33 -7
@@ 18,15 18,19 @@ def cancelPreviousBuilds() {
pipeline {
  agent {
    node {
      label 'jenkins-slave-ccache'
      label 'jenkins-slave-ccache-ram'
    }

  }
  options{
    ansiColor('xterm')
    parallelsAlwaysFailFast()
  }
  environment {
    JOBS=15
  }
  stages {
    stage('Check for previous running builds') {
        
        steps {
            script {
                cancelPreviousBuilds()


@@ 35,6 39,9 @@ pipeline {
    }

    stage('Initial checks') {
        when {
            changeRequest()
        }
        environment {
            GITHUB_BASE_REF="${pullRequest.base}"
            GITHUB_HEAD_REF="${pullRequest.headRef}"


@@ 71,12 78,15 @@ popd'''
        }
    }
    stage('Build') {
        when {
            changeRequest()
        }
        parallel {
        stage('Build RT1051') {
            agent {
                node {
                    label 'jenkins-slave-ccache'
                }         
                    label 'jenkins-slave-ccache-ram'
                }
            }
            steps {
                sh '''#!/bin/bash -e


@@ 106,8 116,8 @@ ccache --show-stats'''
        stage('Build Linux') {
            agent {
                node {
                    label 'jenkins-slave-ccache'
                }         
                    label 'jenkins-slave-ccache-ram'
                }
            }

            environment {


@@ 158,6 168,22 @@ popd'''
        }
        }
    }

    stage('master-jobs') {
        when {
            branch 'master'
        }
        steps {
            echo "run some tests"
            sh '''#!/bin/bash
                echo "HALL 9000 sleeps here."
            '''
            
        }
    }
  }
  post {
    always {
        cleanWs()
    }
  }
}