Skip to content
Snippets Groups Projects
Jenkinsfile 1.67 KiB
@Library(['github.com/indigo-dc/jenkins-pipeline-library@release/2.1.1']) _

def projectConfigPlain
def projectConfigS0
def projectConfigS1

pipeline {

    agent any
    
    stages {
        stage('SQA : plain code checks') {
            steps {
                catchError {
                    script {
                        projectConfigPlain = pipelineConfig(
                            configFile: '.sqa/config_plain.yml')
                        buildStages(projectConfigPlain)
                    }
                }
            }
            post {
                cleanup {
                    cleanWs()
                }
            }
        }
        stage('SQA : build checks for S0') {
            when {
                anyOf {
                    branch 'build-S0'
                }
            }
            steps {
                script {
                    projectConfigS0 = pipelineConfig(
                        configFile: '.sqa/config_build_S0.yml')
                    buildStages(projectConfigS0)
                }
            }
            post {
                cleanup {
                    cleanWs()
                }
            }
        }
        stage('SQA : build checks for S1') {
            when {
                anyOf {
                    branch 'build-S1'
                }
            }
            steps {
                script {
                    projectConfigS1 = pipelineConfig(
                        configFile: '.sqa/config_build_S1.yml')
                    buildStages(projectConfigS1)
                }
            }
            post {
                cleanup {
                    cleanWs()
                }
            }
        }
    }
}