Skip to content
Snippets Groups Projects
Select Git revision
  • 084ceed9debfde4b6e3aedf10dbfaba82bef83a4
  • main default protected
  • testing-imports
  • storybook-improvements
  • OZG-7287-forward-saml-token
  • OZG-7986-mandat-anfragen
  • release-administration
  • OZG-8422-BenutzerSpeichern
  • OZG-8314-Alfa-Vorgang-Bearbeiter-Zuweisung-entfernen
  • release-info
  • release
  • OZG-7856_schadcode-scanner-e2e
  • OZG-7985-fix-sorting
  • OZG-8305-Create-webpack-sbom
  • tooltip-improvements
  • OZG-7714-UpgradeKeycloakDependencyTo25
  • OZG-8086-Admin-Datenanfrage-erstellen
  • OZG-8086-Datenanfrage-Umbenennung
  • mongodb-7-0-16-e2e
  • OZG-6220-Bescheid-speichern-ohne-Postfach
  • OZG-7922-KeycloakOperatorExceptions
  • 1.12.1-administration
  • 1.12.0-administration
  • 1.12.0-info
  • 2.27.0-alfa
  • 1.11.0-info
  • 1.11.0-administration
  • 2.26.0-alfa
  • 1.10.0-info
  • 1.10.0-administration
  • 2.25.0-alfa
  • 1.9.0-info
  • 1.9.0-administration
  • 2.24.0-alfa
  • 1.8.0-info
  • 1.8.0-administration
  • 2.23.0-alfa
  • 1.7.0-info
  • 1.7.0-administration
  • 2.22.0-alfa
  • 1.6.0-info
41 results

Jenkinsfile

Blame
  • Jenkinsfile 26.76 KiB
    import groovy.json.JsonOutput
    
    def SKIP_RUN = false
    
    pipeline {
        agent {
            node {
                label 'jenkins-build-agent-nodejs-16'
            }
        }
    
        triggers {
            upstream(upstreamProjects: getUpstreamProjects(), threshold: hudson.model.Result.SUCCESS)
        }
    
        environment {
            BLUE_OCEAN_URL = "https://jenkins.ozg-sh.de/job/E2E%20Tests/job/${env.BRANCH_NAME}/${env.BUILD_NUMBER}/"
            BUNDESLAND = "by"
            SSO_URL = "sso.load.by.ozg-cloud.de"
            CLUSTER_BASE_URL = "load.by.ozg-cloud.de"
            FAILED_STAGE = ""
            FAILED_PARALLEL_STAGE = " "
            EA_BEZEICHNER = generateBezeichner("e2e-ea")
            MAIN_BEZEICHNER = generateBezeichner("e2e-main")
            SH_SUCCESS_STATUS_CODE = 0
        }
    
        options {
            timeout(time: 2, unit: 'HOURS')
            disableConcurrentBuilds()
            buildDiscarder(logRotator(numToKeepStr: '5'))
            skipDefaultCheckout(true)
        }
    
        stages {
            stage('Checkout build trigger') {
                when {
                    not {
                        anyOf {
                            triggeredBy 'UpstreamCause'
                            triggeredBy 'BuildUpstreamCause'
                            triggeredBy cause: 'UserIdCause'
                        }
                    }
                }
                steps {
                    script {
                        SKIP_RUN = true
                        currentBuild.result= "UNSTABLE"
                    }
                }
            }
            stage('Checkout SCM') {
                when {
                    expression { !SKIP_RUN }
                }
                steps {
                    script {
                        FAILED_STAGE = env.STAGE_NAME
    
                        checkout scm
                    }
                }
            }
            stage("Clone Gitops Repo") {
                when {
                    expression { !SKIP_RUN }
                }
                steps {
                    script {