Skip to content
Snippets Groups Projects
Select Git revision
  • b9241040fb3de49bfe0517bbe9bc1be104f0b8f2
  • main default protected
  • OZG-7856_schadcode-scanner-e2e
  • OZG-7856_schadcode_scanner
  • OZG-7985-fix-sorting
  • OZG-8314-Alfa-Vorgang-Bearbeiter-Zuweisung-entfernen
  • OZG-8305-Create-webpack-sbom
  • tooltip-improvements
  • release-info
  • release-administration
  • release
  • 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
  • OZG-8142-poc-cards
  • OZG-8086-E2E
  • OZG-8086-E2E2
  • OZG-8142-ProjectionStuff
  • 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
  • 1.6.0-administration
  • 2.21.0-alfa
  • 1.5.0-info
  • 1.5.0-administration
41 results

run_helm_test.sh

  • Jenkinsfile 27.96 KiB
    pipeline {
        agent {
            node {
                label 'jenkins-build-agent-nodejs-16'
            }
        }
    
        environment {
            BLUE_OCEAN_URL = "https://jenkins.ozg-sh.de/job/goofy/job/${env.BRANCH_NAME}/${env.BUILD_NUMBER}/"
            RELEASE_REGEX = /\d+.\d+.\d+/
            SNAPSHOT_REGEX = /\d+.\d+.\d+-SNAPSHOT/
            BUNDESLAND = "by"
            SSO_URL = "sso.dev.by.kop-sys.de"
            CLUSTER_BASE_URL = "dev.by.kop-cloud.de"
            FAILED_STAGE = ""
            IMAGE_TAG = ""
            VERSION = ""
            E2E_FAILED = ""
            HELM_CHART_VERSION = ""
        }
    
        options {
            timeout(time: 1, unit: 'HOURS')
            disableConcurrentBuilds()
            buildDiscarder(logRotator(numToKeepStr: '5'))
        }
    
        stages {
            stage('Check Version') {
                steps {
                    script {
                        FAILED_STAGE = env.STAGE_NAME
                        def rootPom = readMavenPom file: 'pom.xml'
                        VERSION = rootPom.version
    
                        def serverPom = readMavenPom file: 'goofy-server/pom.xml'
                        def serverVersion = serverPom.parent.version
    
                        def clientPom = readMavenPom file: 'goofy-client/pom.xml'
                        def clientVersion = clientPom.parent.version
    
                        if(env.BRANCH_NAME == 'release'){
                            if ( !(VERSION ==~ RELEASE_REGEX) || !(serverVersion ==~ RELEASE_REGEX) || !(clientVersion ==~ RELEASE_REGEX)) {
                                error("Keine Release Version für Branch ${env.BRANCH_NAME}.")
                            }
                        } else {
                            if ( !(VERSION ==~ SNAPSHOT_REGEX) || !(serverVersion ==~ SNAPSHOT_REGEX) || !(clientVersion ==~ SNAPSHOT_REGEX)) {
                                error("Keine Snapshot Version für Branch ${env.BRANCH_NAME}.")
                            }
                        }
    
                        if( !(VERSION == serverVersion && VERSION == clientVersion)){
                            error("Versionen sind nicht identisch")
                        }
                    }
                }
            }
            stage('Client') {
                steps {
                    script {
                        FAILED_STAGE=env.STAGE_NAME
    
                        sh 'npm --version'
                        dir('goofy-client') {
                            sh 'echo "registry=https://nexus.ozg-sh.de/repository/npm-proxy" >> ~/.npmrc'
                            sh 'echo "//nexus.ozg-sh.de/:_auth=amVua2luczpQaihzX0ZNNFU5ZC8=" >> ~/.npmrc'
    
    						sh 'npm cache verify'
                            sh 'npm install --legacy-peer-deps'