Skip to content
Snippets Groups Projects
Select Git revision
  • b63283638993f27c78f9699d38e0b9e308269a7c
  • main default protected
  • OZG-6978-prevent-other-pages-from-being-called
  • OZG-7986-mandat-anfragen
  • testing-imports
  • storybook-improvements
  • OZG-7287-forward-saml-token
  • 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
  • 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

wiedervorlage.module.ts

Blame
  • Jenkinsfile.admin 8.81 KiB
    pipeline {
      agent {
        node {
          label 'ozgcloud-jenkins-build-agent'
        }
      }
    
      environment {
            BLUE_OCEAN_URL = "https://jenkins.infra.ozg-cloud.systems/job/admin-client/job/${env.BRANCH_NAME}/${env.BUILD_NUMBER}/"
            RELEASE_REGEX = /\d+.\d+.\d+/
            SNAPSHOT_REGEX = /\d+.\d+.\d+-SNAPSHOT/
            FAILED_STAGE = ""
            SH_SUCCESS_STATUS_CODE = 0
        }
    
        options {
            timeout(time: 1, unit: 'HOURS')
            disableConcurrentBuilds()
            buildDiscarder(logRotator(numToKeepStr: '5'))
        }
    
        stages {
            stage('Check Version') {
                steps {
                    script {
                        FAILED_STAGE = env.STAGE_NAME 
                         dir('alfa-client') { 
                        VERSION = getPackagejsonVersion()
                         }
                    }
                }
            }
        
            stage('build admin client and its docker image') {
                steps {
                    script {
    	                FAILED_STAGE=env.STAGE_NAME
    	
    	                dir('alfa-client') {
    	                    sh 'echo "registry=https://nexus.ozg-sh.de/repository/npm-proxy" >> ~/.npmrc'
    	                    sh 'echo "//nexus.ozg-sh.de/:_auth=amVua2luczprTSFnNVUhMVQzNDZxWQ==" >> ~/.npmrc'
    	
    	                    sh 'npm cache verify'
    	                    sh 'npm install'
    	
    	                    if (isReleaseBranch()) {
    	                    	sh 'npm run ci-prodBuild-admin'
    	                    } else {
    	                    	sh 'npm run ci-build-admin'
    	                    }
    	                    if (isMasterBranch()) {
                                withSonarQubeEnv('sonarqube-ozg-sh'){
                                    sh 'npm run ci-sonar'
                                }
                            } else {
                                sh 'npm run ci-test'
                            }
    	                }
                    }
                }
            }
    
            stage('Tag and Push Docker image') {
                steps {
                    script {
                        FAILED_STAGE=env.STAGE_NAME
                        IMAGE_TAG = generateImageTag()
    
                        tagAndPushDockerImage(IMAGE_TAG)