Skip to content
Snippets Groups Projects
Select Git revision
  • admin-test-indexing
  • OZG-8305-Create-webpack-sbom
  • OZG-6123-Vorgänge-aus-Suche-E2E
  • ods-remove-class-inputs
  • main default protected
  • 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-7985-Statistik-Datenfreigabe
  • OZG-7922-KeycloakOperatorExceptions
  • OZG-8142-poc-cards
  • OZG-8086-E2E
  • OZG-8086-E2E2
  • OZG-8142-ProjectionStuff
  • OZG-8086-Statistik-Datenanfrage-erstellen
  • 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
40 results

Jenkinsfile.admin

Blame
  • Jenkinsfile.admin 1.16 KiB
    pipeline {
      agent {
        node {
          label 'ozgcloud-jenkins-build-agent'
        }
      }
    
      environment {
            BLUE_OCEAN_URL = "https://jenkins.infra.ozg-cloud.systems/job/alfa/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'))
        }
    
        // TODO check version
        stage('build') {
          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'
                }
              }
            }
          }
        }
    }
    
    Boolean isReleaseBranch() {
        return env.BRANCH_NAME == 'release'
    }