Skip to content
Snippets Groups Projects
Commit b183fc74 authored by OZGCloud's avatar OZGCloud
Browse files

Merge branch 'master' into OZG-4857-dms-export-kommentare

parents 142db85e b210c0e2
Branches
Tags 2.5.2
No related merge requests found
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'
}
\ No newline at end of file
{ {
"name": "alfa", "name": "alfa",
"version": "0.0.0", "version": "0.1.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "alfa", "name": "alfa",
"version": "0.0.0", "version": "0.1.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@angular/animations": "16.2.11", "@angular/animations": "16.2.11",
{ {
"name": "alfa", "name": "alfa",
"version": "0.0.0", "version": "0.1.0",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"start": "nx run alfa:serve --port 4300 --disable-host-check", "start": "nx run alfa:serve --port 4300 --disable-host-check",
...@@ -14,7 +14,9 @@ ...@@ -14,7 +14,9 @@
"test:lib": "nx test ${npm_config_lib} --watchAll", "test:lib": "nx test ${npm_config_lib} --watchAll",
"test:debug:lib": "nx test ${npm_config_lib} --detectOpenHandles --watchAll", "test:debug:lib": "nx test ${npm_config_lib} --detectOpenHandles --watchAll",
"ci-build": "nx run alfa:build --outputHashing=all", "ci-build": "nx run alfa:build --outputHashing=all",
"ci-build-admin": "nx run admin:build --outputHashing=all",
"ci-prodBuild": "nx run alfa:build --outputHashing=all --configuration production", "ci-prodBuild": "nx run alfa:build --outputHashing=all --configuration production",
"ci-prodBuild-admin": "nx run admin:build --outputHashing=all --configuration production",
"ci-test": "nx run-many --target=test --parallel 8 -- --runInBand", "ci-test": "nx run-many --target=test --parallel 8 -- --runInBand",
"ci-sonar": "nx run-many --target=test --parallel 8 -- --runInBand --codeCoverage --coverageReporters=lcov --testResultsProcessor=jest-sonar-reporter && npx sonar-scanner", "ci-sonar": "nx run-many --target=test --parallel 8 -- --runInBand --codeCoverage --coverageReporters=lcov --testResultsProcessor=jest-sonar-reporter && npx sonar-scanner",
"lint": "nx workspace-lint && nx lint", "lint": "nx workspace-lint && nx lint",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment